vantezzen / auto-form

🌟 A React component that automatically creates a @shadcn/ui form based on a zod schema.
https://vantezzen.github.io/auto-form/
2.29k stars 81 forks source link

React.forwardRef() #4

Closed HighError closed 11 months ago

HighError commented 11 months ago

When I create a form that is in Dialog: image When I open Dialog, I get an error/warning in the console:

Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

image

Do I need to react to it, or can it be ignored?

vantezzen commented 11 months ago

Should be fixed via https://github.com/vantezzen/auto-form/commit/0b5edc5b12c4da8fc7ed6611c66fcce885acdf4b