mirror of
https://github.com/maputnik/editor.git
synced 2026-01-05 04:50:01 +00:00
Fix to set "editing: false" in blur/pointerup
This commit is contained in:
@@ -150,11 +150,13 @@ class NumberInput extends React.Component {
|
||||
}}
|
||||
onBlur={() => {
|
||||
console.log("onBlur[%s]", this.state.uuid);
|
||||
this.setState({editing: false});
|
||||
this.changeValue(this.state.dirtyValue);
|
||||
}}
|
||||
onPointerUp={() => {
|
||||
console.log("onPointerUp[%s]", this.state.uuid);
|
||||
this._cancelNextChangeEvent = true;
|
||||
this.setState({editing: false});
|
||||
this.changeValue(this.state.dirtyValue);
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user