From 6886dfdea739492d170d1781a20fa1fba2b18701 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Thu, 30 Jan 2020 22:14:40 +0100 Subject: [PATCH] ensure we reset draggingElement when tool locked (#627) --- src/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 6787ed7c..0806f01b 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1336,6 +1336,10 @@ export class App extends React.Component { draggingElement: null, elementType: "selection", }); + } else { + this.setState({ + draggingElement: null, + }); } history.resumeRecording();