fix: can't select blocks in edit mode

This commit is contained in:
Tienson Qin
2021-04-09 22:38:28 +08:00
parent e891da8991
commit 510d181386
2 changed files with 3 additions and 8 deletions

View File

@@ -275,11 +275,7 @@
;; hide context menu
(state/hide-custom-context-menu!)
(editor-handler/clear-selection! e)))
(mixins/listen state js/window "mouseup"
(fn [e]
(when (state/get-selection-start-block)
(state/set-selection-start-block! nil))))))
(editor-handler/clear-selection! e)))))
{:did-mount (fn [state]
(shortcut/install-shortcuts!)
state)