-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS 11.0.3, input box autosize is overlapping the keypad #343
Comments
I ran into that problem also. I have a pull request that comments out the code that leads to the problem. |
Sounds good, Does it work if I use npm install again? |
It should after the pull request is approved. |
@jackmoore can u please approve this request. |
Just curious since this is a regression with iOS -- does anyone know if there is a Webkit bug issue # for this? I stumbled across this recently, and it's affecting more and more devices as users are upgrading. My temporary fix in my project is to only disable autoprefixer for ios (progressive enhancement). |
This is what I would recommend as well, the script isn't that useful on mobile and disabling the scroll restore causes problematic behavior in desktop Safari. |
This problem also appears to only happen when the control is on the bottom of the screen, so if anybody needs a temporary fix, you can just add some empty space to your page. |
Replaces autosize, which presently has scroll issues in iOS 11. See: jackmoore/autosize#343
Any consideration had on this issue? Seems to be a large usability issue in some cases. |
Here's the issue in the WebKit Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=176896 And the change that should fix this: |
@Gasheck Autosize collapses the textarea element and uses the scrollHeight to figure out what the textarea height should be set to. This collapsing can cause scrolling ancestor elements to change their scroll position. To mitigate this the ancestor elements scroll positions are recorded and restored after the textarea element is given the calculated height. |
FYI: This seems to be fixed in iOS 11.4 (or earlier). |
@arggh Thanks for the followup. I'm glad it's resolved, the only way I can think of to work around the issue would have opened up other issues for desktop browsers. |
This issue is happening on iOS 11.0.3 version (all browsers). When you try to type something on the text input focus is going down and input box is pulled down.
The text was updated successfully, but these errors were encountered: