瀏覽代碼

fix: block select all propagation

Konstantinos Kaloutas 2 年之前
父節點
當前提交
590ee630bd
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/main/frontend/handler/editor.cljs

+ 4 - 2
src/main/frontend/handler/editor.cljs

@@ -3631,8 +3631,10 @@
         target-element (.-nodeName (.-target e))]
     (cond
       (whiteboard?)
-      (.selectAll (.-api ^js (state/active-tldraw-app)))
-      
+      (do
+        (util/stop e)
+        (.selectAll (.-api ^js (state/active-tldraw-app))))
+
       ;; editing block fully selected
       (and edit-block edit-input
            (= (util/get-selected-text) (.-value edit-input)))