aranlucas / react-hook-form-mantine

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

Refs don't seem to work #24

Closed reintroducing closed 8 months ago

reintroducing commented 11 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 10 months ago

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

reintroducing commented 10 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 8 months ago

Stale issue message