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

[IconMenu] Invariant Violation: findDOMNode was called on an unmounted component #2053

Closed
ghost opened this issue Nov 3, 2015 · 4 comments
Closed
Labels
bug 🐛 Something doesn't work

Comments

@ghost
Copy link

ghost commented Nov 3, 2015

I am using IE 11, React 0.14.2 and Material UI 0.13.1. When navigating away from a component using IconMenu, this error is occurring. The error is not being reproduced in Chome.

This error can also be seen when using IE 11 here: http://material-ui.com/#/components/icon-menus

@alitaheri alitaheri added the bug 🐛 Something doesn't work label Dec 9, 2015
@dlindahl
Copy link

I am also seeing this same error with 0.13.3 with the TableBody component. It looks like its coming from the ClickAwayable mixin (which probably explains why @Thomsos is seeing it with IconMenu.)

It works fine in Chrome but not IE11. If I had to guess, I'd say its caused by the event handler being fired after componentWillUnmount is called, but I'm not sure why that would be happening...

@oliviertassinari
Copy link
Member

It should be fixed by #2296. Can someone confirm?

@dlindahl
Copy link

Though I'd prefer to not rely on an RC candidate, it does seem to resolve the issue.

One catch to that, though, is it relies on isMounted which is considered an anti-pattern and is slated to be deprecated. So while it works around the problem, I'm not sure I'd say it "fixes" it.

@oliviertassinari
Copy link
Member

We are realy close to release v0.14.
Regarding, isMounted any help to resolve #2573 is welcomed.

mnajdova pushed a commit to mnajdova/material-ui that referenced this issue Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work
Projects
None yet
Development

No branches or pull requests

3 participants