diff --git a/components/lib/inputnumber/InputNumber.js b/components/lib/inputnumber/InputNumber.js index 91ed25eafd..a6e10423bb 100644 --- a/components/lib/inputnumber/InputNumber.js +++ b/components/lib/inputnumber/InputNumber.js @@ -547,7 +547,7 @@ export const InputNumber = React.memo( const _isDecimalSign = isDecimalSign(char); const _isMinusSign = isMinusSign(char); - if ((event.code && (event.code.startsWith('Digit') || event.code.startsWith('Numpad')) && Number(char) >= 0 && Number(char) <= 9) || _isMinusSign || _isDecimalSign) { + if ((Number(char) >= 0 && Number(char) <= 9) || _isMinusSign || _isDecimalSign) { insert(event, char, { isDecimalSign: _isDecimalSign, isMinusSign: _isMinusSign }); } }