-
-
Notifications
You must be signed in to change notification settings - Fork 755
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
destroy
only removing zeroElement
#236
Labels
Comments
I've spent half a day trying to figure out why my DOM keeps growing and growing by appending the same .tether-element again and again. Indeed, this should be fixed. It seems absolutely obvious that calling tether.destroy() should internally remove any elements |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I may be misunderstanding
Tether.destroy
, but it only removes thezeroElement
and leaves theTether.element
when I call it. (ThezeroElement
is the first Tether-related line in this screenshot.)I'm using Tether within a react component, so I'd like to remove all of the DOM nodes on
componentWillUnmount
.I've worked around this by calling
Tether.element.remove
afterdestroy
:Is this the intended behavior?
The text was updated successfully, but these errors were encountered: