We are having a bug in our iOS app when using an HTML text input in a webview.
Here is the HTML :
<!doctype html>
<html>
<head>
<title>Test</title>
</head>
<body>
<input type="text"/>
</body>
</html>
If the input is tapped once, it works perfectly : it gets the focus and the keyboard appears, the user can type. However if the user taps again on the input, the cursor moves to the far left of the input and nothing that is typed appears in the input.
This bug can be seen on iOS7 and iOS8 devices in a webview. It does not appear in Safari or Chrome.
To see this behavior, I've uploaded this video.
I have tried to find a JS solution, playing with .focus()
, without any success. Does anyone have a clue on where it might come from, or how to solve this?