-
Notifications
You must be signed in to change notification settings - Fork 421
Open
Description
Describe the issue and the actual behavior
- When
allowNegativeis set to true and theprefixprop contains more than one symbol (e.g., "USD"), the user cannot delete the negative sign using the backspace key when there is a negative input. - Additionally, if only a negative sign is input, it gets removed when the input loses focus (on blur).
Describe the expected behavior
Users should be able to delete the negative sign using the backspace key.
Provide a CodeSandbox link illustrating the issue
https://codesandbox.io/p/sandbox/multi-symbol-prefix-with-negative-qvqnfh
Provide steps to reproduce this issue
- Open the provided CodeSandbox link
- Attempt to delete the value including the negative sign by pressing the backspace key.
- Observe that the negative sign is not deleted.
- Blur the input field
- Observe that the negative sign is removed
Please check the browsers where the issue is seen
- Chrome
- Chrome (Android)
- Safari (OSX)
- Safari (iOS)
- Firefox
- Firefox (Android)
IvoMatus, mauroc8 and Mikadifo
Metadata
Metadata
Assignees
Labels
No labels