We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Refs on the mounted root element do not appear to be triggered. Is this expected behaviour?
it('triggers refs on child elements', (done) => { mount(<div><span ref={(c) => done()}/></div>); }); it('triggers refs on root elements', (done) => { mount(<span ref={(c) => done()}/>); });
The child elements test passes, but the root element test fails
Both tests should pass
The text was updated successfully, but these errors were encountered:
Does this happen with other versions of react as well?
Sorry, something went wrong.
I was able to reproduce this in React 16.0.0 and 15.0.0
.attrs({ ref: ... })
No branches or pull requests
Refs on the mounted root element do not appear to be triggered. Is this expected behaviour?
Current behavior
The child elements test passes, but the root element test fails
Expected behavior
Both tests should pass
API
Version
Adapter
The text was updated successfully, but these errors were encountered: