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

fix(modal): fix race condition with openedClass #5483

Closed
wants to merge 1 commit into from

Conversation

tjokimie
Copy link
Contributor

When modal-window entering animation runs after the modal has closed openedClass is left to body element.

This pull request fixes the issue by checking if modal closing has been scheduled after the animation has finished.

@tjokimie
Copy link
Contributor Author

This issue has only occurred on Firefox (v. 43.0.4) when the modal is opened on application startup and closed almost immediately after.

I don't have a Plunker but the test case demonstrates the exact same execution order as on Firefox (and fails without the $$uibDestructionSchedule check).

@wesleycho
Copy link
Contributor

This LGTM - subtle, good catch!

@wesleycho wesleycho added this to the 1.2.0 milestone Feb 16, 2016
@wesleycho wesleycho closed this in 979fe0b Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants