admin管理员组文章数量:1312905
tried to find the topic about what happening in one of my works, but I couldn't.
When the Android user in Chrome tap to fill a input on my form, the Keyboard appears but suddenly closes immediately. Not giving a chance for user start to fill...
URL FOR EXAMPLE: /agenda/transa-amazonica-%E2%99%A1-jaloo-show-ao-vivo/
VIDEO RECORDING FOR EXAMPLE: .mov?dl=0
tried to find the topic about what happening in one of my works, but I couldn't.
When the Android user in Chrome tap to fill a input on my form, the Keyboard appears but suddenly closes immediately. Not giving a chance for user start to fill...
URL FOR EXAMPLE: http://selva.club/agenda/transa-amazonica-%E2%99%A1-jaloo-show-ao-vivo/
VIDEO RECORDING FOR EXAMPLE: https://www.dropbox./s/dfb9nkgt7e3zm9u/Video%2023-04-17%2013%2054%2035.mov?dl=0
Share Improve this question asked Apr 23, 2017 at 17:04 fkrustfkrust 1331 silver badge8 bronze badges 2-
Have you invoked
blur
event ? – Rayon Commented Apr 23, 2017 at 17:09 - @Rayon how exactly, mate? Not sure why this is happening, first time seeing this – fkrust Commented Apr 23, 2017 at 17:11
2 Answers
Reset to default 10After a whole day spent... Just realized what it happens... I have on window.resize event, just cleared this one and it stops the problem. Sorry for the inconvenience.
In my case I observed similar behavior when i accidentally updated the innerHTML:
HTML
<form id="myform">
<input>
</form>
Javascript
if(someaction) myform.innerHTML+= "some notice";
Here someaction
effectively destroys and recreates the input and thus closes the virtual keyboard.
myform.appendChild()
keeps the old input focused
本文标签: javascriptAndroid keyboard closing on input focusStack Overflow
版权声明:本文标题:javascript - Android keyboard closing on input focus - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741907989a2404263.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论