-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Disable back-button on modals #1397
Comments
Good idea. |
Added |
Great, thank you! Just a question: is it an intended behaviour that hardwareBackButtonClose: false now makes the app close on button press instead of doing nothing? (I ask even if in my case it's exactly what I need ;) ) |
Hmm, you are right, it should actually do nothing instead of causing whatever is under the modal to go back. |
Fixed. Thanks for testing! |
There seems to be another issue... the backbutton keeps being disabled also after that the modal has been hidden! |
Like @LeleDev said, sometimes the back button stays disabled for the whole application even if the modal was hiden ! (not 100% of the time I cannot find a way to reproduce reliably but it does happen!) |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
I'm using $ionicModal to show a sign in page
This should trap the user in the modal itself, but the back button allow him to "escape" easily from that view. Could you please add a modal property to prevent the modal from being hidden when the user hits the back button on android?
Thank you in advance!
The text was updated successfully, but these errors were encountered: