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
Typing one of the characters in allowedDecimals does not update the caret position, if the caret is in front of an already-existing decimal separator.
This is especially noticeable if fixedDecimalScale is enabled, since it forces a decimal to be present.
This error started occurring in 5.1.0.
Describe the expected behavior
If a decimal symbol is typed (any of the allowed decimals) at the same position as an existing decimal sign, the caret should move to the right of the decimal sign, as if the decimal separator was "overwritten" with a new one.
Describe the issue and the actual behavior
Typing one of the characters in
allowedDecimals
does not update the caret position, if the caret is in front of an already-existing decimal separator.This is especially noticeable if
fixedDecimalScale
is enabled, since it forces a decimal to be present.This error started occurring in
5.1.0
.Describe the expected behavior
If a decimal symbol is typed (any of the allowed decimals) at the same position as an existing decimal sign, the caret should move to the right of the decimal sign, as if the decimal separator was "overwritten" with a new one.
Provide a CodeSandbox link illustrating the issue
https://codesandbox.io/s/alloweddecimalseparators-fixeddecimalscale-bug-epp4d1?file=/package.json
Provide steps to reproduce this issue
Type something like 12%34 in the input field and notice that the decimal sign was never typed.
If the version of
react-number-format
is downgraded to5.0.1
it works as expected.Please check the browsers where the issue is seen
The text was updated successfully, but these errors were encountered: