Skip to content

destroy only removing zeroElement #236

Open
@danoc

Description

@danoc

Hello!

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.)

screenshot 2017-01-06 15 47 46

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:

this._tether.destroy();
this._tether.element.remove();

Is this the intended behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions