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
Input
ForwardRef
Console (F12) throws Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
when rendering any component that uses the Input component.
Code like this:
generates:
No warning in the console when rendering a any component which passes the ref to the Input component.
Warning displayed in the console for a component which uses Input component on render.
The text was updated successfully, but these errors were encountered:
#165 Fix ForwardRef warning when using Input with other components
77783a5
065a2e0
fbeceic
Successfully merging a pull request may close this issue.
Basic information
1.7.3
Bug description
Console (F12) throws Warning:
Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
when rendering any component that uses the
Input
component.Steps to reproduce
Code like this:
generates:
Expected behavior
No warning in the console when rendering a any component which passes the ref to the
Input
component.Actual behavior
Warning displayed in the console for a component which uses
Input
component on render.The text was updated successfully, but these errors were encountered: