Chrome scrolls on tab key when form in iframe has focus

两盒软妹~` 提交于 2019-12-23 17:04:01

问题


I have a iFrame which hosts an external site containing a form. If I press the tab keys on some of the form's textboxes, the whole browser tab scrolls down a page. Strangely enough, this doesn't do it on all of the form fields.

This only seems to happen in Chrome. I've tried it in Firefox and IE11, and this doesn't happen.

After it has scrolled down, the next form field does have focus - so the issues isn't that the next field is really far down.

The same happens when Javascript is disabled.

I'm having trouble diagnosing what this issue is. Is this a known issue with iframes? Does anyone have any tips on how to debug this?

来源:https://stackoverflow.com/questions/28169511/chrome-scrolls-on-tab-key-when-form-in-iframe-has-focus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!