mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 01:16:27 +00:00
enhance: use radix checkbox globally
This commit is contained in:
@@ -23,11 +23,9 @@
|
||||
(:value result)) result)
|
||||
selected-choices (rum/react *selected-choices)]
|
||||
[:div.flex.flex-row.justify-between.w-full {:class (when chosen? "chosen")}
|
||||
[:span
|
||||
[:div.flex.flex-row.items-center.gap-1
|
||||
(when multiple-choices?
|
||||
(ui/checkbox {:checked (boolean (selected-choices (:value result)))
|
||||
:style {:margin-right 4}
|
||||
:readOnly true
|
||||
:on-click (fn [e]
|
||||
(.preventDefault e))}))
|
||||
value]
|
||||
|
||||
Reference in New Issue
Block a user