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

bug: NavController Present Modal not overlaying content #5480

Closed
qorsmond opened this issue Feb 17, 2016 · 5 comments
Closed

bug: NavController Present Modal not overlaying content #5480

qorsmond opened this issue Feb 17, 2016 · 5 comments
Assignees
Milestone

Comments

@qorsmond
Copy link

Type: bug

Ionic Version: 2.x

Platform: mobile webview

When trying to display a modal using nav.present(myModal) the screen goes blank when testing in the browser emulating IOS it shows correctly when emulating Android.

But when testing on the device itself with Android 5.1 the modal is not shown. When I tap on the screen where the inputs should be located it seems that the inputs of the modal gets focus because the keyboard opens but you can’t see the inputs because the modal is hidden.

I tried to create a code pen but not so sure how to do it for ionic2. I did make a gist: https://gist.github.com/qorsmond/0fda766a2091431bc80e

ionic info:

Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Version: 2.0.0-beta.0
Ionic CLI Version: 2.0.0-beta.17
Ionic App Lib Version: 2.0.0-beta.8
OS: Node Version: v5.6.0

@Ionitron Ionitron added the v2 label Feb 17, 2016
@qorsmond
Copy link
Author

Here are gif's to try to show what I meant:

Working; emulating Android in chrome:
animationa
Not showing modal; emulating IOS in chrome:
animation

I also encountered the exact same as #5484

@adamdbradley adamdbradley self-assigned this Feb 17, 2016
@adamdbradley adamdbradley added this to the 2.0.0-beta.2 milestone Feb 17, 2016
@adamdbradley
Copy link
Contributor

Thanks for the report, we'll take a look and try to get this fixed up.

@adamdbradley
Copy link
Contributor

Have you tried removing the autofocus from the ion-input? I understand it should autofocus when it comes up, but I'm just trying to narrow down what's causing it.

@qorsmond
Copy link
Author

Just tried it and removing the autofocus from the ion-input did the trick! Maybe it is the Chrome IOS emulator causing the issue? Not able to test directly on IOS.

@adamdbradley
Copy link
Contributor

Great thanks, i just made some changes so autofocus doesn't get added to the native input element directly, but let's ionic control how to autofocus.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants