aranlucas / react-hook-form-mantine

React Hook Form bindings for Mantine components
https://aranlucas.github.io/react-hook-form-mantine/
83 stars 12 forks source link

Refs don't seem to work #24

Closed reintroducing closed 4 months ago

reintroducing commented 7 months ago

When passing a ref to any of the fields, you get TS errors:

Screenshot 2023-12-15 at 4 27 23 PM

What is the proper way to apply refs to the components?

ivosabev commented 6 months ago

Ref's are not supported from what I see, I copied the source code and added the forwardRef myself.

reintroducing commented 6 months ago

Ref's are not supported from what I see, I copied the source code and added the forwardRef myself.

I considered that approach but that puts management of all the code on you and not this library, which defeats the purpose of installing it in the first place, unfortunately. I've since moved away from this approach and am using mantine/forms instead.

github-actions[bot] commented 4 months ago

Stale issue message