diff --git a/src/main/frontend/handler/editor.cljs b/src/main/frontend/handler/editor.cljs index 9faeaa94d8..19fea8cd74 100644 --- a/src/main/frontend/handler/editor.cljs +++ b/src/main/frontend/handler/editor.cljs @@ -3625,11 +3625,6 @@ edit-block (state/get-edit-block) target-element (.-nodeName (.-target e))] (cond - (and (whiteboard?) (not edit-input)) - (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))) @@ -3645,6 +3640,11 @@ (contains? #{"INPUT" "TEXTAREA"} target-element) nil + (whiteboard?) + (do + (util/stop e) + (.selectAll (.-api ^js (state/active-tldraw-app)))) + :else (do (util/stop e)