From bb80b5f9eb4ac05bc843ff78bb2cf744f4d81753 Mon Sep 17 00:00:00 2001 From: Konstantinos Kaloutas Date: Mon, 3 Jul 2023 17:32:47 +0300 Subject: [PATCH] fix #9783 --- src/main/frontend/handler/editor.cljs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)