React component to format numbers in an input or as a text.
3.9k
stars
410
forks
source link
Using decimalSeparator with a suffix containing more than one character brakes the seperator behavior if there is no previous value in input #774
Closed
TitoSniberb closed 1 year ago
Describe the issue and the actual behavior
When typing . and using
decimalSeparator
, if the input doesnt have a value (is empty) the caret wont move.Describe the expected behavior
Caret moves after the separator
Provide a CodeSandbox link illustrating the issue
https://codesandbox.io/s/decimalseparator-demo-forked-mk62tn?file=/src/App.js