Skip to content

Commit

Permalink
[single-dropdown] Fix background-color when disabled
Browse files Browse the repository at this point in the history
For #342
  • Loading branch information
kimo-k committed Jun 29, 2024
1 parent 19041b9 commit 8d9f1ee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/re_com/dropdown.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,11 @@
(label-fn (item-for-id @internal-model choices :id-fn id-fn))
placeholder)]
[:a.chosen-single.chosen-default
{:style {:display "flex"
:justify-content :space-between
:width "100%"}
{:style (merge {:display "flex"
:justify-content :space-between
:width "100%"}
(when disabled?
{:background-color "#EEE"}))
:tab-index (or tab-index 0)
:on-click (handler-fn
(if @ignore-click
Expand Down

0 comments on commit 8d9f1ee

Please sign in to comment.