You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
have an input field with the prefix (e.g $)
type a negative number, e.g. -123
you will see something like this: -$123
move cursor left to the front, e.g. before '123'
press backspace on the keyboard to delete the negative sign
The result: negative sign is removed but also the last digit is removed (e.g. $12) and the cursor is moved to the end
Please check the browsers where the issue is seen
Chrome
The text was updated successfully, but these errors were encountered:
Describe the issue and the actual behavior
When trying to delete the minus sign '-' with a backspace, the last digit is also removed
Affects inputs with prefixes.
Describe the expected behavior
Only the negative sign should be removed
Provide a CodeSandbox link illustrating the issue
happens even on the official demo site
https://jinno.io/app/23/isAllowed?source=react-number-format&displayType=input
Provide steps to reproduce this issue
have an input field with the prefix (e.g $)
type a negative number, e.g. -123
you will see something like this: -$123
move cursor left to the front, e.g. before '123'
press backspace on the keyboard to delete the negative sign
The result: negative sign is removed but also the last digit is removed (e.g. $12) and the cursor is moved to the end
Please check the browsers where the issue is seen
The text was updated successfully, but these errors were encountered: