Browse Source

double click to add text when using default selection tool

Ryan Di 1 tháng trước cách đây
mục cha
commit
2132c9ac44
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/excalidraw/components/App.tsx

+ 1 - 1
packages/excalidraw/components/App.tsx

@@ -5424,7 +5424,7 @@ class App extends React.Component<AppProps, AppState> {
       return;
     }
     // we should only be able to double click when mode is selection
-    if (this.state.activeTool.type !== "selection") {
+    if (this.state.activeTool.type !== this.defaultSelectionTool) {
       return;
     }