NumberField + useController React Hook Form #4484
cojoclaudiu
started this conversation in
General
Replies: 1 comment 11 replies
-
We don't fire an event if it's empty and you click in and back outside https://codesandbox.io/s/magical-lake-zrslyr?file=/src/App.js so I would look and see if React Hook Form is doing something. Maybe related to react-hook-form/react-hook-form#6287 ? Otherwise, you could make a codesandbox here reproducing the issue with explicit steps on how to interact with the UI to cause the bug. Maybe I missed a step just now. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm this example for my component and I'm trying to make a controlled component using React Hook form but when the input is empty and I click outside I get a 0 value inside the input instead of empty input.
Is there any way to fix this?
Demo: https://codesandbox.io/s/usecontroller-forked-viw53w?file=/src/App.js
Beta Was this translation helpful? Give feedback.
All reactions