-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
TestUtils.renderIntoDocument failing for components containing <input /> #3202
Comments
I think I don't see evidence of that in your test case but maybe it's related... |
I looked into that, actually. It could be related, but then you'd expect
in the same test environment, everything renders as expected. (You can see this by changing l. 7 in |
Ack, I feel like an idiot. Moving the assignment of Strange that it doesn't break on elements other than |
input elements are implemented under the hood with a wrapper that deals with the events and making it a "controlled component": Closing this out as we're already aware that this sort of problem can manifest with multiple copies of React and we already have #2402, etc. to track. |
I get the following stack trace when attempting to render a component containing an
<input />
in a test:I've set up a minimal test case here https://github.com/pletcher/test-utils-input
In-app, everything renders just fine; it's only when using
TestUtils.renderIntoDocument
that things go a little crazy.The text was updated successfully, but these errors were encountered: