Skip to content

Commit 8d9f1ee

Browse files
committed
[single-dropdown] Fix background-color when disabled
For #342
1 parent 19041b9 commit 8d9f1ee

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/re_com/dropdown.cljs

+5-3
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,11 @@
528528
(label-fn (item-for-id @internal-model choices :id-fn id-fn))
529529
placeholder)]
530530
[:a.chosen-single.chosen-default
531-
{:style {:display "flex"
532-
:justify-content :space-between
533-
:width "100%"}
531+
{:style (merge {:display "flex"
532+
:justify-content :space-between
533+
:width "100%"}
534+
(when disabled?
535+
{:background-color "#EEE"}))
534536
:tab-index (or tab-index 0)
535537
:on-click (handler-fn
536538
(if @ignore-click

0 commit comments

Comments
 (0)