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

modal w/form & input fields shifts out of view when keyboard opens [iPhone-only] #209

Open
kasnj opened this issue Jul 8, 2016 · 2 comments

Comments

@kasnj
Copy link

kasnj commented Jul 8, 2016

Users can't see any of the form while the keyboard is open. Closing the keyboard brings everything back into view, but leaves users unable to complete and submit forms.

@mlumbroso
Copy link

Same behaviour, both iPhone and iPad, Chrome and Safari.
It seems to be related to the position: fixed of modal--show

I'm trying to find a workaround, if you have one don't hesitate to share !

@mlumbroso
Copy link

At the end, I used this stackoverflow answer : http://stackoverflow.com/a/35675094/374395

In the CSS of the parent page, you need


html,body{
    -webkit-overflow-scrolling : touch !important;
    overflow: auto !important;
    height: 100% !important;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants