mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
fix: buggy selection hightlights (#9074)
This commit is contained in:
@@ -631,9 +631,9 @@ Similar to re-frame subscriptions"
|
||||
(distinct)))
|
||||
|
||||
(defn sub-block-selected?
|
||||
[block-uuid]
|
||||
[container-id block-uuid]
|
||||
(rum/react
|
||||
(rum/derived-atom [state] [::select-block block-uuid]
|
||||
(rum/derived-atom [state] [::select-block container-id block-uuid]
|
||||
(fn [state]
|
||||
(contains? (set (get-selected-block-ids (:selection/blocks state)))
|
||||
block-uuid)))))
|
||||
|
||||
Reference in New Issue
Block a user