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
In NumericFormat, if the prefix or suffix is set to a number, that number is blocked from being input as the first input.
Ex. If prefix is set to '1', and the user types '1' as their input, nothing is shown. However, if the user types '2' as their input, '12' is shown, which is correct.
Describe the expected behavior
If the prefix is set to '1' and '1' is typed as input, what should be shown is '11'.
Describe the issue and the actual behavior
In NumericFormat, if the prefix or suffix is set to a number, that number is blocked from being input as the first input.
Ex. If prefix is set to '1', and the user types '1' as their input, nothing is shown. However, if the user types '2' as their input, '12' is shown, which is correct.
Describe the expected behavior
If the prefix is set to '1' and '1' is typed as input, what should be shown is '11'.
Provide a CodeSandbox link illustrating the issue
Issue is present in the demo in official documentation.
https://s-yadav.github.io/react-number-format/docs/numeric_format/#prefix-string
https://codesandbox.io/s/prefix-demo-6ibo72?from-embed=&file=/src/App.js
Provide steps to reproduce this issue
Please check the browsers where the issue is seen
Have only tested in chrome.
The text was updated successfully, but these errors were encountered: