diff --git a/src/index.js b/src/index.js index 6c220430..4b792a85 100644 --- a/src/index.js +++ b/src/index.js @@ -239,8 +239,7 @@ export default class InputNumber extends React.Component { if (this.state.focused) { this.inputting = true; } - const input = this.props.parser(this.getValueFromEvent(e)); - this.setState({ inputValue: input }); + const input = this.props.parser(this.getValueFromEvent(e)); this.props.onChange(this.toNumberWhenUserInput(input)); // valid number or invalid string }