diff --git a/src/InputNumber.tsx b/src/InputNumber.tsx index a71139eb..db25312c 100644 --- a/src/InputNumber.tsx +++ b/src/InputNumber.tsx @@ -255,7 +255,6 @@ class InputNumber extends React.Component, InputNumber onChange = e => { const { onChange } = this.props; - if (this.state.focused) { this.inputting = true; } @@ -324,7 +323,7 @@ class InputNumber extends React.Component, InputNumber getValueFromEvent(e) { // optimize for chinese input expierence // https://github.com/ant-design/ant-design/issues/8196 - let value = e.target.value.trim().replace(/。/g, '.'); + let value = e.target.value.trim().replace(/。|\.。/g, '.'); if (isValidProps(this.props.decimalSeparator)) { value = value.replace(this.props.decimalSeparator, '.');