cancel
Showing results for 
Search instead for 
Did you mean: 

The code to set focus and cursor position fails in a mobile browser

Former Member
0 Kudos

In two previous discussions (http://scn.sap.com/message/15176399 and http://scn.sap.com/message/15205348) I received help on how to set the focus on an OpenUI5 mobile input field and then how to position the cursor at the end of any text that might be in that field.

That all works well in desktop browsers (Chrome, Firefox and IE10).

However that same code seems to fail when I test it on browsers on mobile devices. At first I thought this was working in Chrome on an iPad but now it does not (could our taking new OpenUI5 code recently affected that?). I do not think I have ever see this work in Chrome on a, Android tablet.

Has anyone had success setting the focus and cursor position on a mobile input field running in a mobile environment?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Wasn't sure where to turn with this problem. There is talk on the web that there is a problem in Chrome on Android and that this will be fixed in version 37. We I get that version I will try and update this post.

Former Member
0 Kudos

Well we upgraded Chrome and setting the focus on a mobile input in a table is still a problem in Chrome on an iPad.