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

Adjust last animation change to fix test #46

Merged
merged 2 commits into from
Nov 16, 2018

Conversation

phazei
Copy link

@phazei phazei commented Nov 16, 2018

Was getting error:

Chrome 70.0.3538 (Mac OS X 10.14.0) $uibModal option by option openedClass should not add the modal-open class if modal is closed before animation FAILED

Tried to debug and see why the test was failing. Looking at the code just led to not knowing how the test ever even could pass since modal.close when called immediately after open, always checks the $modalStack before the new modalInstance is even added to it. Regardless, moved that part of the backdrop close listener outside of the postDigest call.

…viously to not break a test. Adding class for proper animation left after digest.
@Morgul Morgul merged commit 20d1f35 into Morgul:master Nov 16, 2018
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