diff --git a/components/lib/inputnumber/InputNumber.js b/components/lib/inputnumber/InputNumber.js index a6f06b68be..d5224ddb69 100644 --- a/components/lib/inputnumber/InputNumber.js +++ b/components/lib/inputnumber/InputNumber.js @@ -323,6 +323,7 @@ export const InputNumber = React.memo( // #6324 Chrome is allowing accent-dead characters through... const inputType = event.nativeEvent.inputType; const data = event.nativeEvent.data; + if (inputType === 'insertText' && /\D/.test(data)) { event.target.value = lastValue.current; }