Skip to content
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

Input - ForwardRef warning #165

Closed
fbeceic opened this issue Dec 20, 2023 · 0 comments · Fixed by #166
Closed

Input - ForwardRef warning #165

fbeceic opened this issue Dec 20, 2023 · 0 comments · Fixed by #166
Assignees
Labels
bug Something isn't working

Comments

@fbeceic
Copy link
Collaborator

fbeceic commented Dec 20, 2023

Basic information

  • Tiller version:
    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:
image

generates:
image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant