Skip to content

Commit

Permalink
[tree-select] React to both values and refs in the :model prop.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimo-k committed Jun 10, 2024
1 parent 245302a commit b707010
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

> Committed but unreleased changes are put here, at the top. Older releases are detailed chronologically below.
## 2.21.5 (2024-05-14)

#### Fixed

- `tree-select` - Fixed non-responsive behavior when passing `:model` as value, (not a reagent/atom).


## 2.21.4 (2024-05-14)

#### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/re_com/tree_select.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
choices)
initial-expanded-groups)))
(fn tree-select-render
[& {:keys [choices group-label-fn disabled? groups-first? min-width max-width min-height max-height on-change choice-disabled-fn label-fn parts class style attr] :as args}]
[& {:keys [model choices group-label-fn disabled? groups-first? min-width max-width min-height max-height on-change choice-disabled-fn label-fn parts class style attr] :as args}]
(or
(validate-args-macro tree-select-args-desc args)
(let [choices (deref-or-value choices)
Expand Down

0 comments on commit b707010

Please sign in to comment.