-
Notifications
You must be signed in to change notification settings - Fork 47.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
TypeError: Cannot set property 'initialValue' of null. ReactDOMSelect.postUpdateWrapper #5968
Comments
At first glance, I suspect this is probably a duplicate of #3298 Without a repro, there really isn't a whole lot we can do from our end. Since I suspect it's a duplicate of #3298, and since there is nothing actionable on our end (since we can't repro your issue issue), I'm going to close this out. If you're able to find a good repro (jsfiddle), let me know and we can reopen/reinvestigate. |
@jimfb sounds good, thanks for pointing me to those issues. I'll spend some more time later attempting to create a reproduction and when I do I'll reopen. |
@browniefed Were you able to figure out what's causing the problem and how to fix it? I'm facing the same problem. I have some nested components and one containing select is being rerendered (unmounted and mounted again with new props). I'm constantly getting the error mentioned above. When I remove select completely but render it's wrapper component everything works fine. |
@LKay No, not entirely. Not using |
@jimfb there's a repro here redux-form/redux-form#321 |
Issue
Using latest .14.7 I'm running into an issue error with select and
ReactDOMSelect:158
when navigating away from one place to another place which is causing a select to throw even though it should and is unmounted.Error being:
TypeError: Cannot set property 'initialValue' of null at Object.ReactDOMSelect.postUpdateWrapper (http://localhost:3992/assets/js/main.js:22153:38)
Other reports of this happening are here redux-form/redux-form#321
Setup
Currently integrating into an app in pieces, So I render our
Router
into an empty container that renders components that render into their appropriate DOM containers.Seemingly the error?
I've narrowed it down to calling
unmountComponentAtNode(this.section)
which occurs in acomponentDidUpdate
. I removed it and the error stops happening.I realize that mounting to an existing node that is a React root will cause an unmount and mount the correct things.
Repro
I've attempted to reproduce it but no luck at the moment even though I've narrowed it down to the
unmountComponentAtNode
call.The click is originating in a different ReactDOM.render container so I'm not sure if it is an eventing thing where clicks from different ReactDOM roots are applying to everywhere else?
Stack Trace
Code
My code causing the issue looks like so.
The text was updated successfully, but these errors were encountered: