-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix <NumberInput>
state only changes on blur
#8033
Conversation
For some reason I don't understand, the I've validated that the problem doesn't come from react-hook-form (cf https://codesandbox.io/s/useformstate-forked-i4rwpe?file=/src/App.js) |
OK, so the bug is actually only happening in tests, and it's a react-hook-form bug (react-hook-form/react-hook-form#8786). I'll look for a workaround. |
<NumberInput>
state only changes on blur
<NumberInput>
changes the form state on change, but only displays the string entered by the user.Closes #7919