Skip to content

Commit

Permalink
Fixed Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Apr 29, 2024
1 parent 689cdf6 commit 6a8c91d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/lib/inputnumber/InputNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6a8c91d

Please sign in to comment.