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

When changing from one modal to another, remove and add is-active-class ... #44

Closed
wants to merge 1 commit into from

Conversation

4nduril
Copy link
Contributor

@4nduril 4nduril commented Jun 17, 2013

...properly.

If you change directly from one modal, say, via a link within it, to another modal, the class "is-active" stays on the old modalElement and isn't added to the new one. This is partly due to the if-condition regarding the "has-overlay" class of the html element. I put this into a nested if-statement.
Additionally I wrote a few lines to remove "is-active" from the old modalElement (if it exists).

@drublic
Copy link
Owner

drublic commented Jun 27, 2013

Thanks for fixing this behavior. I merged your commit in 5187b3b.
🍻

@drublic drublic closed this Jun 27, 2013
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.

None yet

2 participants