fix: multiple choice not working due to #10132

looks like there's a breaking change with ui/button's options
This commit is contained in:
Gabriel Horner
2023-11-14 16:56:03 -05:00
parent 86eb1b394d
commit 80ac797c8a

View File

@@ -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