From 6a8c91d31591cb67e9ddecf00487df24be6f45b9 Mon Sep 17 00:00:00 2001 From: Melloware Date: Mon, 29 Apr 2024 09:00:28 -0400 Subject: [PATCH] Fixed Lint --- components/lib/inputnumber/InputNumber.js | 1 + 1 file changed, 1 insertion(+) 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; }