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: Unable to close modal/alert/bottomsheet on back or forth navigation ionic 4 (PWA) #18801

Closed
AkshayKanchan opened this issue Jul 15, 2019 · 3 comments
Labels

Comments

@AkshayKanchan
Copy link

AkshayKanchan commented Jul 15, 2019

Bug Report

Ionic version:

[x] 4.6.2

Current behavior:
In browser (Mobile & Desktop) when a modal/Alert/BottomSheet is open and user navigates back using back button on browser, the modal stays open and background page is navigated anyway. There's no official way to handle the back button event programatically.

Expected behavior:
Any kind of overlays/Modals should be closed on back navigation.

Steps to reproduce:
Open a Modal/Alert/bottomSheet and navigated back or forth from browser using browser buttons (Navigation url should be of same Application) .

Other information:

Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.12.0 (/usr/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.6.2
   @angular-devkit/build-angular : 0.13.8
   @angular-devkit/schematics    : 7.3.8
   @angular/cli                  : 7.3.8
   @ionic/angular-toolkit        : 1.5.1

System:

   NodeJS : v10.16.0 (/usr/bin/node)
   npm    : 6.9.0
   OS     : Linux 4.15
@ionitron-bot ionitron-bot bot added the triage label Jul 15, 2019
@liamdebeasi
Copy link
Contributor

Thanks for the issue. I am going to close this as a duplicate of #15422. Feel free to follow that thread for any updates.

@AkshayKanchan
Copy link
Author

I guess its a bug not a feature request. Modal should be closed on back navigation instead of just navigating background page.

@ionitron-bot
Copy link

ionitron-bot bot commented Aug 15, 2019

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.

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

No branches or pull requests

2 participants