Skip to content
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 bug - unwanted scrolling when focusing an input inside the modal #302

Closed
limonte opened this issue Sep 21, 2016 · 2 comments
Closed
Labels
help wanted Extra attention is needed

Comments

@limonte
Copy link
Member

limonte commented Sep 21, 2016

You can test this issue here: https://sweetalert2.github.io/ios-bug.html with iOS device of course :) For other devices (desktop, Android) there's no such bug.

Tested in Safari and Chrome - the same result, so I think it's iOS issue.

This happens only if there's an input inside the modal and I tap that input. In the same moment, that input gets focus and native iOS keyboard become visible.

The page below modal in the same moment is automatically scrolled to 50% of its height. This behaviour is totally unwanted and I have no clue how to prevent this default iOS "feature".

PS. this issue was recreated since we have implemented different modal positioning starting from 5.0.0

@limonte
Copy link
Member Author

limonte commented Sep 21, 2016

Related StackOverflow question: http://stackoverflow.com/q/39626302/1331425

@limonte
Copy link
Member Author

limonte commented Oct 15, 2016

I just released v5.3.1 with the fix for this issue!

Many thanks to @jpattishall and his detailed research and answer on StackOverflow: http://stackoverflow.com/a/40033422/1331425

PS. 0 issues! Thank you all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant