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

I'm getting some odd behaviour in the Chrome browser on HTC One and Galaxy S5.I click on an input

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().

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744728896a4590345.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信