-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
React Fiber - MenuItem not rendering due to findDOMNode #7025
Comments
Looks like an issue with the portal. I have the following error, the ref callback is called after return (
<Portal
open
ref={node => {
this.mountNode = node ? node.getLayer() : node;
}}
>
<div
data-mui-test="Modal"
className={classNames(classes.modal, className)}
ref={node => { // Called after componentDidUpdate
this.modal = node;
}}
{...other}
>
{!disableBackdrop && this.renderBackdrop(backdropProps)}
{modalChild}
</div>
</Portal>
); I have found a relevant issue: facebook/react#9808. |
I have managed to narrow down a minimal reproduction with the very same code, only the React version changed: (see the log messages after clicking on toggle).
I think that we can use @gaearon comment: facebook/react#9808 (comment), to write a cross next/latest Portal component. |
I still get this issue on react 16 beta-5. Material UI v1-beta-4. any fix? |
Problem description
Modal
-based components fail to render due to findDOMNode returningnull
in this line.Possibly related to facebook/react#8905, facebook/react#9475, and facebook/react#8854
Versions
next
The text was updated successfully, but these errors were encountered: