-
Notifications
You must be signed in to change notification settings - Fork 47.6k
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
Changing node type breaks invariant #1107
Comments
Can just chime in and say that's something is definitely funky here. Also, it breaks even if wrapped in one or more divs, so it's not specific to the root (although the bad |
cc @zpao This seems (to me) like a showstopper for 0.9.0. |
Is this exactly the same as #1105? |
@plievone It seems so, but it's weird, I did try it with |
@syranide Without keys it may reuse the same instance or id or something in some cases, so not unmounting the event target and thus not erroring, I guess? |
@plievone I think I tried that, but |
@syranide Problem occurs for me with |
Yeah. Definitely a launch blocker. |
Dupe of #1105. It breaks only with input because ReactMount's node cache doesn't get populated if you just render a span without ever calling getDOMNode(). |
I am still seeing this error even on 0.9 with I am not sure if this is a bug with React or not, but it is entirely unclear to me how to resolve the problem. Can anyone help nudge me in the right direction? |
@dlindahl Can you post a minimal jsbin or jsfiddle showing the problem in a new issue? |
This example:
When one tries to click on a div an error will be raised:
Invariant Violation: ReactMount: Two valid but unequal nodes with the same
data-reactid
: .0Does break with
select/option
pair instead ofinput
tag as well (maybe some other tags as well, haven't checked them). Doesn't break withbutton
tag and others.Works flawlessly on React 0.8.0, doesn't work on master.
The text was updated successfully, but these errors were encountered: