Skip to content

Commit

Permalink
fix: multiple choice not working due to #10132
Browse files Browse the repository at this point in the history
looks like there's a breaking change with ui/button's options
  • Loading branch information
logseq-cldwalker committed Nov 14, 2023
1 parent 86eb1b3 commit 80ac797
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main/frontend/components/select.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,13 @@
(when multiple-choices?
[:div.p-4 (ui/button "Apply"
{:small? true
:on-mouse-down (fn [e]
(util/stop e)
(when @*toggle (@*toggle))
(when (fn? on-apply)
(on-apply selected-choices)
(when close-modal? (state/close-modal!))))})])]]
:button-props
{:on-mouse-down (fn [e]
(util/stop e)
(when @*toggle (@*toggle))
(when (fn? on-apply)
(on-apply selected-choices)
(when close-modal? (state/close-modal!))))}})])]]
(when (fn? tap-*input-val)
(tap-*input-val input))
[:div.cp__select
Expand Down

0 comments on commit 80ac797

Please sign in to comment.