fix: select all while editing blocks

This commit is contained in:
Konstantinos Kaloutas
2023-06-14 17:37:44 +03:00
committed by Gabriel Horner
parent 7f77856329
commit d277031918

View File

@@ -3616,7 +3616,7 @@
edit-block (state/get-edit-block)
target-element (.-nodeName (.-target e))]
(cond
(whiteboard?)
(and (whiteboard?) (not edit-input))
(do
(util/stop e)
(.selectAll (.-api ^js (state/active-tldraw-app))))