fix: only select page blocks

This commit is contained in:
Weihua Lu
2021-06-16 14:13:13 +08:00
committed by Tienson Qin
parent af9f583521
commit b1c7670dd5

View File

@@ -3056,6 +3056,6 @@
blocks-container (util/rec-get-blocks-container input)
blocks (dom/by-class blocks-container "ls-block")]
(state/exit-editing-and-set-selected-blocks! blocks))
(-> (gdom/getElementsByClass "ls-block")
array-seq
state/exit-editing-and-set-selected-blocks!)))
(->> (all-blocks-with-level {:collapse? true})
(map (comp gdom/getElementByClass str :block/uuid))
state/exit-editing-and-set-selected-blocks!)))