Looking to use the autofocus attribute on the input text component http://www.oracle.com/webfolder/technetwork/jet/jsdocs/oj.ojInputText.html#autofocus
This works fine on Chrome / IE, but on Firefox (Using 57.0.4 (64-bit)) this doesn't set the input text to be in focus.
I have tried the following but still can't get it to work across all browsers, has anyone managed to do this in 4.1?
- autofocus attribute in the HTML
- In bindings applied function doing document.getEle...() elem.autofocus = true
- var elem = document.getElementById('username-input'); elem.focus()
- var elem = document.getElementById('username-input|input'); elem.focus()
- Busy context check with all of the above applied
The only thing I can do to get to work is adding a setTimeout in the bindings applied function, and then doing var elem = document.getElementById('username-input|input'); elem.focus() which isn't ideal
Cheers,
Andy