mirror of
https://github.com/maputnik/editor.git
synced 2026-08-26 15:07:41 +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={() => {
|
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);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user