diff --git a/components/lib/inputnumber/InputNumber.js b/components/lib/inputnumber/InputNumber.js index 35d63e0157..28a49d04c5 100644 --- a/components/lib/inputnumber/InputNumber.js +++ b/components/lib/inputnumber/InputNumber.js @@ -402,7 +402,7 @@ export const InputNumber = React.memo( } else { newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart); } - } else if (props.mode === 'currency' && ['¥', '$', 'I', 'N', 'R'].includes(deleteChar)) { + } else if (props.mode === 'currency' && deleteChar.search(_currency.current) != -1) { newValueStr = inputValue.slice(1); }