[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
RESOLVED FIXED 153224
Tapping into an <input> within a position:fixed element scrolls to the top of the page
https://bugs.webkit.org/show_bug.cgi?id=153224
Summary Tapping into an <input> within a position:fixed element scrolls to the top of...
Chris Rebert
Reported 2016-01-18 23:13:51 PST
iOS version: 9.2 Testcase: http://output.jsbin.com/qicigu/1 Original Bootstrap bug report: https://github.com/twbs/bootstrap/issues/17497 Steps to reproduce: 1. Open http://output.jsbin.com/qicigu/1 in iOS Safari. 2. Scroll to the bottom of the page. 3. Tap the "Open modal" button. 4. A yellow overlay appears. 5. Tap on the <input> that has the text "Click here". Actual result: The page scrolls to the top, the input becomes focused, and the on-screen keyboard appears. Expected result: The input should become focused and the on-screen keyboard should appear. The scroll position of the page should not change.
Attachments
Chris Rebert
Comment 1 2016-01-18 23:16:22 PST
No such scrolling occurs in Android Chrome or OS X Safari.
Chris Rebert
Comment 2 2016-01-19 00:23:13 PST
Chris Rebert
Comment 3 2016-01-22 01:20:02 PST
Chris DeMars
Comment 4 2016-02-10 06:36:33 PST
After you fill out the input and hit done the focus shifts to the background, modal stays up, and the background scrolls.
Simon Fraser (smfr)
Comment 5 2022-02-08 20:32:19 PST
Nanjie Chen
Comment 6 2022-04-28 18:21:59 PDT
seems that the test case bug still presents as of now iOS version: 15.4.1
Nanjie Chen
Comment 7 2022-04-28 18:31:31 PDT
additional info with the bug still reproducible: Mozilla/5.0 (iPhone; CPU iPhone OS 15_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1
Note You need to log in before you can comment on or make changes to this bug.