浏览代码

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();