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 6c0b8b0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

> Committed but unreleased changes are put here, at the top. Older releases are detailed chronologically below.

## 2.21.5 (2024-06-29)

#### Fixed

- `single-dropdown` - Fixed disabled style. Now disabled dropdowns appear greyed-out again.



## 2.21.5 (2024-06-10)

#### Fixed
Expand Down
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 6c0b8b0

Please sign in to comment.