Reset dirtyValue on resetValue

This commit is contained in:
orangemug 2020-04-06 10:40:30 +01:00
parent d5d387f349
commit a624909819

View file

@ -95,8 +95,10 @@ class NumberInput extends React.Component {
if (!this.isValid(this.state.value)) { if (!this.isValid(this.state.value)) {
if(this.isValid(this.props.value)) { if(this.isValid(this.props.value)) {
this.changeValue(this.props.value) this.changeValue(this.props.value)
this.setState({dirtyValue: this.props.value});
} else { } else {
this.changeValue(undefined); this.changeValue(undefined);
this.setState({dirtyValue: undefined});
} }
} }
} }