-
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
bug: isHighest causing problems with consecutive popups in v1.0.1 #4061
Comments
Make sure to close and remove the currently shown popup before showing the previous one. Closes ionic-team#4061
👍 |
So ionic is just getting confused, trying to show the second popup while also trying to hide the first one. http://codepen.io/mhartington/pen/zGeJog?editors=001 Or this |
Okay, tested on v1.0.1, and it works using this approach. I'd suggest to include an explanation in $ionicPopup documentation. Something like: onTap callback should not call other popup instance, if necessary, it must be called inside then block. |
Will make sure it gets in there. Thanks |
We have experienced the above problem in a couple of situations, not all with valid workarounds:
Do you think we could re-open this issue, or else I could create a separate one? It appears to me that the recent changes introduce various openings for race conditions, not all of which can be averted. Links: Comparison of 1.0.0 with 1.0.1 and the "guilty" commit: bcfe210 |
For whoever might be looking for a proper way to show (two) popups one after another, you could have a look at this demo as well: http://codepen.io/zarko/full/jPJqeb/ |
Make sure to close and remove the currently shown popup before showing the previous one. Closes ionic-team#4061
Make sure to close and remove the currently shown popup before showing the previous one. Closes ionic-team#4061
Make sure to close and remove the currently shown popup before showing the previous one. Closes ionic-team#4061
Type: bug
Platform: all
Hello!
I'm facing a problem related to consecutive popups. You can simulate it through:
http://codepen.io/anon/pen/XbqWwB
Click on the button Test,then click save, the second popup will open, click save again. Now, try to click on the button Test again. It seems only the highest popup got closed, and the first popup remains in the DOM, but invisible.
This issue didn't happen in 1.0.0
Here is the problem line:
8095b12#diff-e91afb9d089c4a023017992e5bf71f3eR45574
I appreciate any attention over this issue.
The text was updated successfully, but these errors were encountered: