mirror of
https://github.com/maputnik/editor.git
synced 2025-12-29 01:20:01 +00:00
Merge remote-tracking branch 'upstream/master' into fix/remove-componentWillUpdate
Conflicts: src/components/map/MapboxGlMap.jsx src/components/modals/ExportModal.jsx
This commit is contained in:
@@ -51,7 +51,7 @@ class NumberInput extends React.Component {
|
||||
return true
|
||||
}
|
||||
|
||||
resetValue() {
|
||||
resetValue = () => {
|
||||
// Reset explicitly to default value if value has been cleared
|
||||
if(this.state.value === "") {
|
||||
return this.changeValue(this.props.default)
|
||||
@@ -74,7 +74,7 @@ class NumberInput extends React.Component {
|
||||
placeholder={this.props.default}
|
||||
value={this.state.value}
|
||||
onChange={e => this.changeValue(e.target.value)}
|
||||
onBlur={this.resetValue.bind(this)}
|
||||
onBlur={this.resetValue}
|
||||
/>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user