最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Android browsers keyboard openscloses on last input field focus - Stack Overflow

programmeradmin0浏览0评论

I'm getting some odd behaviour in the Chrome browser on HTC One and Galaxy S5. I click on an input field to enter some data and the keyboard opens and immediately closes again. I've noticed it only happens on the last available input field on my pages.

Has anyone encountered this issue before?

It works fine on the iPhone and desktop browsers.

Thanks

I'm getting some odd behaviour in the Chrome browser on HTC One and Galaxy S5. I click on an input field to enter some data and the keyboard opens and immediately closes again. I've noticed it only happens on the last available input field on my pages.

Has anyone encountered this issue before?

It works fine on the iPhone and desktop browsers.

Thanks

Share Improve this question asked Apr 24, 2014 at 8:32 Thomas BuckleyThomas Buckley 6,04619 gold badges64 silver badges112 bronze badges 0
Add a ment  | 

1 Answer 1

Reset to default 9

Ok...so it looks like it has something to do with android browsers redrawing the DOM whenever the keyboard appears. I have $(window).resize() function that is getting called each time the keyboard appears in this case. I may just switch it to use $(window).load().

发布评论

评论列表(0)

  1. 暂无评论