0

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?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.