Michael Goffioul created CB-14209:
-------------------------------------
Summary: Focus restoration failure in onResume()
Key: CB-14209
URL: https://issues.apache.org/jira/browse/CB-14209
Project: Apache Cordova
Issue Type: Bug
Components: cordova-android
Reporter: Michael Goffioul
I have a Cordova app running on a keyboard-driven device: it's a TV set-top box
without any touchscreen, with Android 7.1.2. The app can launch other
activities. Whenever the Cordova app resumes, the focus is moved to another DOM
element, the DOM element that had the focus before the app was paused is lost.
The order of precedence seems to be:
- element with tabIndex="0" (or anything !="-1")
- natively focusable elements, like <input>
- <body>
This seems to be caused by the fix for CB-7172. If I comment the fix, the focus
is correctly restored to the element that had the focus before pausing.
This is particularly annoying if the app contains an <input> element, as this
will trigger softkeyboard by default when the app is resumed.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]