Fix to set "editing: false" in blur/pointerup

This commit is contained in:
orangemug 2020-01-19 07:15:50 +00:00
parent a560176d83
commit d886b14d09

View file

@ -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);
}}
/>