Describe the bug
When using allowNegativeValue:false
When you you type "123-" the input will automatically remove the dash.
But when you only type "-", it does not remove this value, only when you start typing more, or onBlur.
Combined with react-hook-form/yup, this is can cause problems, when a user types a single dash and submits the form: it doesn't remove the dash.
To Reproduce
use allowNegativeValue:false
type "dash"
Expected behavior
Dash is never shown (or immediately removed)
Describe the bug When using
allowNegativeValue:false
When you you type "123-" the input will automatically remove the dash. But when you only type "-", it does not remove this value, only when you start typing more, or onBlur.Combined with react-hook-form/yup, this is can cause problems, when a user types a single dash and submits the form: it doesn't remove the dash.
To Reproduce
Expected behavior Dash is never shown (or immediately removed)
Code Sandbox allowNegativeValue
Additional context Great library, thankyou 👍