mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-29 22:54:39 +01:00
Fix to set "editing: false" in blur/pointerup
This commit is contained in:
parent
a560176d83
commit
d886b14d09
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue