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

Warning: input: `ref` is not a prop when using onChange #23

Closed reintroducing closed 7 months ago

reintroducing commented 7 months ago

Screenshot 2023-12-14 at 4 49 15 PM

I was seeing this issue in my project and couldn't figure out why so I put together a minimal reproduction example and it is definitely easily visible in isolation as well. I've attached a zip that shows the issue when you type in the password input. It also happens if you add an onChange to the TextInput (these are the only two components I've tested though).

example.zip

reintroducing commented 7 months ago

huh, disregard i guess, if you log evt.target.value instead of just evt, it works fine.

although its a bit odd that you cant console log evt...