fix: don't clear selection in blocks

This commit is contained in:
Tienson Qin
2022-11-14 14:32:21 +08:00
parent a939767aaf
commit db7bc72a3c
3 changed files with 17 additions and 11 deletions

View File

@@ -2147,7 +2147,7 @@
(do
(util/stop e)
(state/conj-selection-block! (gdom/getElement block-id) :down)
(when (and block-id (not (state/get-selection-start-block)))
(when block-id
(state/set-selection-start-block! block-id)))
(when (contains? #{1 0} button)
(when-not (target-forbidden-edit? target)