Skip to content
This repository has been archived by the owner on May 5, 2018. It is now read-only.

Modals and Dialog don't disappear when the back button is pressed. #538

Closed
jamasters opened this issue Apr 18, 2013 · 3 comments
Closed

Comments

@jamasters
Copy link

I have run into an issue with Modals and Dialogs when a browsers back button is pressed while a modal and glassis visible. (in a multi page app).

The application changes the view and controller while the modal stays activated and visible. As the controller has been swapped out from underneath the modal, strange things start happening.

How do we get around this issue? Is there a way to make sure the modal / dialog is dismissed when the back button is dismissed or the route is changed.

@ProLoser
Copy link
Member

1: create a plunker or demo so we can see your code
2: Is this intended for angular-ui/bootstrap?

@pkozlowski-opensource
Copy link
Member

@jamasters I've created angular-ui/bootstrap#335 in the https://github.com/angular-ui/bootstrap based on this one.

@FindBoat
Copy link

I'm not sure if this has been solved, but you can refer to my solution here.

@angular-ui angular-ui locked and limited conversation to collaborators Nov 29, 2014
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

4 participants