mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
fix: keep copy-paste buffer intact when deleting blocks
Related to #1507
This commit is contained in:
@@ -1219,8 +1219,8 @@
|
||||
(common-handler/copy-to-clipboard-without-id-property! content)))))
|
||||
|
||||
(defn cut-selection-blocks
|
||||
[]
|
||||
(copy-selection-blocks)
|
||||
[copy?]
|
||||
(when copy? (copy-selection-blocks))
|
||||
(when-let [blocks (seq (get-selected-blocks-with-children))]
|
||||
(let [repo (dom/attr (first blocks) "repo")
|
||||
ids (distinct (map #(uuid (dom/attr % "blockid")) blocks))]
|
||||
|
||||
Reference in New Issue
Block a user