-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Is closing and reopening the modal supposed to keep the old one in dom? #131
Labels
Comments
You can use |
Same issue - calling this.destroy();. onClose() still keeps the modal in DOM - any tips on how to track this down? |
Actually the problem was that I was binding multiple listeners on the same object - I eventually had to call on the initiating elem that spawns the modal so that it only gets called once and spawns 1 model |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have several elements in a modal which is created on the fly. When I close and reopen the modal, I find that these elements are still in DOM, leading to weird effects of duplication when I try to use data attached to these elements.
Should I do:
onClose: function () { modal.destroy() },
to prevent this behaviour?
The text was updated successfully, but these errors were encountered: