s-yadav / react-number-format

React component to format numbers in an input or as a text.
MIT License
3.85k stars 404 forks source link

Not able to delete negative sign using backspace button #824

Open TathagatIVP opened 7 months ago

TathagatIVP commented 7 months ago

Describe the issue and the actual behavior

When the negative sign is removed from the prefix using backspace, the negative sign is automatically inserted when the focus is moved out. It functions when we hit the -key on the keyboard, but not when we hit the backspace key to remove the negative sign.

Describe the expected behavior

negative sign should get removed if we press backspace button

Provide a CodeSandbox link illustrating the issue

Provide steps to reproduce this issue

Please check the browsers where the issue is seen

s-yadav commented 6 months ago

@TathagatIVP Please include codesandbox to demonstrate the issue, also which version you are trying this.