mirror of https://github.com/logseq/logseq
fix: collapse select issue
parent
986c993dfe
commit
14638ff6b9
|
@ -789,7 +789,10 @@
|
|||
#?(:cljs
|
||||
(defn get-blocks-noncollapse []
|
||||
(->> (d/by-class "ls-block")
|
||||
(filter (fn [b] (not= "none" (d/style b "display")))))))
|
||||
(filter (fn [b]
|
||||
(if-let [parent (gdom/getParentElement b)]
|
||||
(not= "none" (d/style parent "display"))
|
||||
false))))))
|
||||
|
||||
;; Take the idea from https://stackoverflow.com/questions/4220478/get-all-dom-block-elements-for-selected-texts.
|
||||
;; FIXME: Note that it might not works for IE.
|
||||
|
|
Loading…
Reference in New Issue