We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc9c8d4 commit 75bdea5Copy full SHA for 75bdea5
1 file changed
components/lib/inputnumber/InputNumber.js
@@ -689,8 +689,15 @@ export const InputNumber = React.memo(
689
};
690
691
const isFloat = (val) => {
692
- let formatter = new Intl.NumberFormat(_locale, getOptions());
693
- let parseVal = parseValue(formatter.format(val));
+ let formattedVal = val;
+
694
+ if (typeof formattedVal !== 'string') {
695
+ let formatter = new Intl.NumberFormat(_locale, getOptions());
696
697
+ formattedVal = formatter.format(val);
698
+ }
699
700
+ let parseVal = parseValue(formattedVal);
701
702
if (parseVal === null) {
703
return false;
0 commit comments