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

Check if modal has been closed once or destroyed #284

Open
cvanderlinden opened this issue Jul 13, 2017 · 2 comments
Open

Check if modal has been closed once or destroyed #284

cvanderlinden opened this issue Jul 13, 2017 · 2 comments

Comments

@cvanderlinden
Copy link

I am looking for a way to see if the modal has already been closed once or .destroy() has been called.

I got around it by adding a classed on modal close, and the checking if the modal exists with that class, it's a little hacky. Wondering if there is a better option here.

@yunusga
Copy link

yunusga commented Jul 14, 2017

Check it in Remodal#methods and Remodal#events

@cvanderlinden
Copy link
Author

Right, I did. getState() can tell me when it's closed, but it will also say closed before it's been activated once. Events is what I use to add the CSS class I mentioned in the first comment. Doesn't help.

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

No branches or pull requests

2 participants