-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InputNumber: (Germany) second step of currency can't changed #5589
Comments
I think this is related: #5548 |
@melloware // isDecimalSign return false
const newSelectionEnd = selectionEnd + Number(isDecimalSign(value) || isDecimalSign(insertedValueStr)); |
How about changing it to this? const isDecimalSign = (char) => {
if (_decimal.current.test(char) || _decimal.current.test(char.toString().replace(".",","))) {
_decimal.current.lastIndex = 0;
return true;
}
return false;
}; |
@kl-nevermore but won't that check for decimal or comma regardless of Locale? |
First, delete all the input, type some numbers, and then type a comma. The second step of the currency will not change anymore.
The text was updated successfully, but these errors were encountered: