Pārlūkot izejas kodu

ensure we reset draggingElement when tool locked (#627)

David Luzar 5 gadi atpakaļ
vecāks
revīzija
6886dfdea7
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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();