You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may be misunderstanding Tether.destroy, but it only removes the zeroElement and leaves the Tether.element when I call it. (The zeroElement 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 after destroy:
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
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: