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

Error on unmount if never opened #8

Closed
rafeememon opened this issue Feb 15, 2016 · 1 comment
Closed

Error on unmount if never opened #8

rafeememon opened this issue Feb 15, 2016 · 1 comment

Comments

@rafeememon
Copy link
Contributor

If the component is rendered into the DOM but never opened, the following error occurs because of calling ReactDOM.unmountComponentAtNode with a null node:

Uncaught Invariant Violation: unmountComponentAtNode(...): Target container is not a DOM element.
@halloffame
Copy link

I'm getting the same error, I tracked it down to this line:

https://github.com/souporserious/react-tether/blob/7fbbaad359c2916eedf6f78a88d2160059a98d49/src/TetherComponent.jsx#L78

ReactDOM.unmountComponentAtNode(this._elementParentNode)

In my case this._elementParentNode is null when it is trying to unmount, which is why it is throwing the error.

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