소스 검색

ensure we reset draggingElement when tool locked (#627)

David Luzar 5 년 전
부모
커밋
6886dfdea7
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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();