Skip to content

Commit 2b016a5

Browse files
authored
InputNumber: use decimal separator based on locale (#7996)
1 parent 5b8a377 commit 2b016a5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

components/lib/inputnumber/InputNumber.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,11 @@ export const InputNumber = React.memo(
555555
let char = event.key;
556556

557557
if (char) {
558+
// get decimal separator in current locale
559+
if (char === '.') {
560+
char = _decimalSeparator.current;
561+
}
562+
558563
const _isDecimalSign = isDecimalSign(char);
559564
const _isMinusSign = isMinusSign(char);
560565

0 commit comments

Comments
 (0)