I’m developing a hybrid Android app using Capacitor (WebView). I’ve run into a strange bug that I cannot reproduce in Chrome browser, but only in Android’s WebView:
- When the user taps a “label for”, the caret moves correctly into the associated input (focus works), but the keyboard does not open.
- If the user taps the same label a second time, then the keyboard opens.
- If the user taps directly on an “input”, the caret appears and the soft keyboard opens as expected.
- After that, everything works fine: any further taps on labels open the keyboard as expected.
Is this a known Android WebView bug with focus events? How can I work around it so that tapping the label always opens the IME on the first try?