Explorar o código

ensure we reset draggingElement when tool locked (#627)

David Luzar %!s(int64=5) %!d(string=hai) anos
pai
achega
6886dfdea7
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/index.tsx

+ 4 - 0
src/index.tsx

@@ -1336,6 +1336,10 @@ export class App extends React.Component<any, AppState> {
                     draggingElement: null,
                     elementType: "selection",
                   });
+                } else {
+                  this.setState({
+                    draggingElement: null,
+                  });
                 }
 
                 history.resumeRecording();