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

Fix async popup issues #4526

Closed
wants to merge 1 commit into from
Closed

Conversation

seronal
Copy link

@seronal seronal commented Oct 15, 2015

This commit removes $ionicModal.stack.isHighest check before removing a popup. This recently added check does not seem to have any purpose and it actually breaks programmatically closing popups, if they are not at the top of the stack.

This commit also introduces a delay to hiding the top popup on the stack before showing the new one. Without timeout, if multiple popups are fired within config.showPushDelay, their hide() methods are called before their show() methods due to timeout applied to showing them. So all of them end up being "shown" at the same time. Purpose of "config.showPushDelay" is not clear from the code, and removing it altogether can also fix the issue but I didn't want to mess with it.

This along with the recently merged PR (#4118) should close multiple issues:
#4061
#4304
#4339
#4486
#4299

@mhartington
Copy link
Contributor

Would you be able to provide a test for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants