From 8d9f1ee1880b6995d6d5d8b3ec49aa707e68cd62 Mon Sep 17 00:00:00 2001 From: Kimo Knowles Date: Sat, 29 Jun 2024 02:39:05 +0200 Subject: [PATCH] [single-dropdown] Fix background-color when disabled For #342 --- src/re_com/dropdown.cljs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/re_com/dropdown.cljs b/src/re_com/dropdown.cljs index d5e1eb5e..ed729a21 100644 --- a/src/re_com/dropdown.cljs +++ b/src/re_com/dropdown.cljs @@ -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