mirror of
https://github.com/maputnik/editor.git
synced 2026-08-30 00:47:25 +00:00
Reset dirtyValue on resetValue
This commit is contained in:
@@ -95,8 +95,10 @@ class NumberInput extends React.Component {
|
||||
if (!this.isValid(this.state.value)) {
|
||||
if(this.isValid(this.props.value)) {
|
||||
this.changeValue(this.props.value)
|
||||
this.setState({dirtyValue: this.props.value});
|
||||
} else {
|
||||
this.changeValue(undefined);
|
||||
this.setState({dirtyValue: undefined});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user