mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-30 23:25:29 +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={() => {
|
onBlur={() => {
|
||||||
console.log("onBlur[%s]", this.state.uuid);
|
console.log("onBlur[%s]", this.state.uuid);
|
||||||
|
this.setState({editing: false});
|
||||||
this.changeValue(this.state.dirtyValue);
|
this.changeValue(this.state.dirtyValue);
|
||||||
}}
|
}}
|
||||||
onPointerUp={() => {
|
onPointerUp={() => {
|
||||||
console.log("onPointerUp[%s]", this.state.uuid);
|
console.log("onPointerUp[%s]", this.state.uuid);
|
||||||
this._cancelNextChangeEvent = true;
|
this._cancelNextChangeEvent = true;
|
||||||
|
this.setState({editing: false});
|
||||||
this.changeValue(this.state.dirtyValue);
|
this.changeValue(this.state.dirtyValue);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue