diff --git a/components/lib/inputnumber/InputNumber.js b/components/lib/inputnumber/InputNumber.js index a76f604412..271d6afb17 100644 --- a/components/lib/inputnumber/InputNumber.js +++ b/components/lib/inputnumber/InputNumber.js @@ -555,7 +555,11 @@ export const InputNumber = React.memo( }; const replaceDecimalSeparator = (val) => { - return isDecimalSign(val) ? val.toString().replace(/\.(?=[^.]*$)/, _decimalSeparator.current) : val; + if (isFloat(val)) { + return val.toString().replace(/\.(?=[^.]*$)/, _decimalSeparator.current); + } + + return val; }; const isDecimalSign = (char) => {