fix: clear selection when swipe to toggle a selected block

This commit is contained in:
Tienson Qin
2025-05-30 02:52:30 +08:00
parent 7d7a50075d
commit ecaf7fc0ae
2 changed files with 5 additions and 5 deletions

View File

@@ -1271,7 +1271,7 @@ Similar to re-frame subscriptions"
(defn drop-selection-block!
[block]
(set-selection-blocks-aux! (-> (remove #(= block %) (get-unsorted-selection-blocks))
(set-selection-blocks-aux! (-> (remove #(= (.-id block) (.-id %)) (get-unsorted-selection-blocks))
vec)))
(defn drop-selection-blocks-starts-with!