fix(editor): clear highlighted selection when blocks are selected

This commit is contained in:
Tienson Qin
2020-12-17 20:50:44 +08:00
parent 42967ea782
commit b5c454648d

View File

@@ -1128,11 +1128,7 @@
(doseq [block (state/get-selection-blocks)]
(dom/remove-class! block "selected")
(dom/remove-class! block "noselect"))
(state/clear-selection!))
;; (when e
;; (when-not (util/input? (gobj/get e "target"))
;; (util/clear-selection!)))
)
(state/clear-selection!)))
(defn clear-selection-blocks!
[]
@@ -1332,7 +1328,9 @@
:else
nil)
(state/conj-selection-block! element up?)))))))
(do
(util/clear-selection!)
(state/conj-selection-block! element up?))))))))
(defn save-block-aux!
[block value format]