From d886b14d098411c03a3378bd93d009726b27ba1d Mon Sep 17 00:00:00 2001 From: orangemug Date: Sun, 19 Jan 2020 07:15:50 +0000 Subject: [PATCH] Fix to set "editing: false" in blur/pointerup --- src/components/inputs/NumberInput.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/inputs/NumberInput.jsx b/src/components/inputs/NumberInput.jsx index 02cfca5..1f7063b 100644 --- a/src/components/inputs/NumberInput.jsx +++ b/src/components/inputs/NumberInput.jsx @@ -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); }} />