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
Can't get React ref on <input> if it's a child of <Input>.
<input>
<Input>
<Input> <input type="text" ref={r => console.log(r)}/> </Input>
I would expect to see this following in the console, indicating that r is the ref to the <input> tag.
r
<input type="text">
The ref function is never called. There is no console.log output at all.
0.67.2
http://codepen.io/darkadept/pen/mWazWa
The text was updated successfully, but these errors were encountered:
It happens because we handle ref even Input has child input, so we overriding existing ref without handling it.
ref
Input
Sorry, something went wrong.
layershifter
No branches or pull requests
Can't get React ref on
<input>
if it's a child of<Input>
.Steps
Expected Result
I would expect to see this following in the console, indicating that
r
is the ref to the<input>
tag.Actual Result
The ref function is never called. There is no console.log output at all.
Version
0.67.2
Testcase
http://codepen.io/darkadept/pen/mWazWa
The text was updated successfully, but these errors were encountered: