I have a bootstrap modal that contains a form with text and email fields. Moving between inputs by clicking, or using ios keyboard tab, causes a 'jumping' effect. The entire modal seems to re-render or slide down, animate again, and then the correct field is focused. The issue seems to be related to height of modal, often the first 3-4 input fields work fine, and then the fields closer to the bottom will have this issue.
Steps to recreate
System info:
Apple ipad2, v9.3.1
Chrome: 50.0.2661.95
Bootstrap: v3.3.6
Hi @eozelius!
You appear to have posted a live example (http://jsbin.com/pusayir/edit), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might potentially be causing your issue:
center element is obsolete. Use CSS instead.You'll need to fix these errors and post a revised example before we can proceed further.
Thanks!
(_Please note that this is a fully automated comment._)
<center>s removed from my code. Thanks @twbs-lmvtfy
@eozelius Does this happen in Safari, Chrome, or both? (on iOS)
Possible X-Ref: #17324
Hello @cvrebert, this issue happens on both safari and chrome
Ok, I can see what you're referring to on my iPhone.
Very unlikely we can do anything about it on our end, but we can file a WebKit bug about it.
@cvrebert Please file this WebKit bug
@cvrebert Thanks for the info a lot, I have wasted a day or more trying to find a work around to this. I can finally show the URL of webkit bug & tell client we cant do much here :) cheers.
@cvrebert Hi again, I ended up using a work around which might help other people who end up in this thread.
I am simply hiding entire layout then showing popup as a normal div (without fixed or absolute position). This gives a feel of popup & seems like the most closest acceptable solution to this bug.
Click here for the demo and here for editor.
Further details are here
I've run into same issue today. fixed it by moving width/height from "%" to "vh", "vw" for .modal dialog.
@Marshevskyy I'm encouraged by your comment. However, changing all modal-related width and height values from % to vh didn't seem to change the behavior for me. I'm using Bootstrap 3 and Featherlight (and the flicker seems to happen even if I remove Bootstrap entirely). If you'd be willing to share more specifically how you solved the problem, I'd appreciate it! Are you using http://getbootstrap.com/javascript/#modals? Where/what did you edit? Thanks!!
I am having same flickring issue on ipad. can you tell any one how can i resolve?
This is believed to have been fixed in iOS 10.3.1:
https://bugs.webkit.org/show_bug.cgi?id=158276#c4
Hi
but this solution not working for me.
https://bugs.webkit.org/show_bug.cgi?id=158276#c4
What version of iOS are you using?
Link to your affected webpage?
I am using 10.2.1
when i click on any textbox, the whole popup goes up and down.
No good known workaround aside from "update your iOS".
Most helpful comment
Filed https://bugs.webkit.org/show_bug.cgi?id=158276