"Set Focus" on textarea doesn't appear to do anything

Dave shared this problem 4 years ago
Solved

The following appears in a prototype under development:


94a7449f751e35ec3e14641a7b724a54


When the user clicks the "@" icon, a "Set Value" action places "@jasper" into the textarea above it. That works just fine.


A "Set Focus" action after the "Set Value" is supposed to give focus to the textarea so that the user start typing a tweet to @jasper.


I expected that...


A text input cursor would appear at the beginning of the textarea, before "@jasper",


A text input cursor would appear after "@jasper", or


The entire contents of the textarea would be selected


as a result of the "Set Focus" action.


Any of those would be acceptable, although the last is what I would really like.


Unfortunately, the "Set Focus" action doesn't do anything. It might as well not even be there. I have no idea at all where focus might be after clicking the "@" icon, but it's sure not on that textarea, because typing after clicking that icon does nothing at all.

Comments (9)

photo
1

Hi Dave,


Unfortunately I've been unable to reproduce this. Can you let me know what browser you are using and the OS and version?


Also, are you using the widget called Text under Web widgets?


Best,


Marc

photo
1

Google Chrome 38.0.2125.111 (up to date) on Mac OS X 10.9.5, in both "Simulate" mode and viewed as an HTML export.


Also, as an HTML export viewed on Firefox 31.0.


It is a web text widget, the one whose icon is an "A" with a text input cursor beside it.

photo
1

Hi Dave,


I'm having trouble reproducing the behaviour you are facing.


Could you send the prototype to jim.support at justinmind.com so we can take a closer look?


The behaviour should be that the cursor appears at the end of "@jasper".


Best,


Marc

photo
1

Coming to you soon. Thank you for your help, Marc.

Also, I am hosting a copy of the current HTML export.

I'll send the username and password for the HTML export via email.

To see the problem once logged in to the mockup:

1. Click "Got it" to dismiss the release notes dialog

2. On the "Carlo Stanger" post, click the "Reply" icon in the action bar:

2da88897f8485a0e32841c1128f0cc39

3. In the right-hand column, click the "@" icon below the textarea

4. The text "@jasper" appears in the textarea

5. The text input cursor does not appear after "@jasper" :-(

photo
1

Hello. I'm still running into this issue: When I click a button that shows a form containing a textarea or a text input, scrolls it into view, then uses "Set focus on" the input/textarea, nothing happens.


Were you able to reproduce this issue when I sent you the VP file and hosted a copy of the mockup in question?

photo
1

Hi Dave,


When you sent the username/password to access your hosted prototype via our client support portal, you got a reply from Marc. This is what he said:


Hi David,


I've seen that the setFocus bug only happens when it is a textarea; it works fine for text and for password.


The shift ll forward both bugs to the development team so they can be solved asap. We will let you know through the getsatisfacion portal when they will be solved as soon as we know.


Thank you for helping us improve!


Best,


Marc

photo
1

Thank you, Carles,


I looked here for Marc's response, but I see now that it went to email.


I hope that the setFocus bug is resolved soon: it will make our prototypes much more realistic!


Thanks,


Dave

photo
1

I think you can mark this one as complete: I just tested in 6.4.1, and it appears to be possible to set focus on Textareas now!

photo
1

Hi Dave,


Yes, this issue has been fixed in Justinmind v6.4.1!


Regards,


Lidia