Skip to content

Commit 111871c

Browse files
committed
[tree-select] React to both values and refs in the :model prop.
1 parent 245302a commit 111871c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
> Committed but unreleased changes are put here, at the top. Older releases are detailed chronologically below.
44
5+
## 2.21.5 (2024-06-10)
6+
7+
#### Fixed
8+
9+
- `tree-select` - Fixed non-responsive behavior when passing `:model` as value, (not a reagent/atom).
10+
11+
512
## 2.21.4 (2024-05-14)
613

714
#### Fixed

src/re_com/tree_select.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@
320320
choices)
321321
initial-expanded-groups)))
322322
(fn tree-select-render
323-
[& {: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}]
323+
[& {: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}]
324324
(or
325325
(validate-args-macro tree-select-args-desc args)
326326
(let [choices (deref-or-value choices)

0 commit comments

Comments
 (0)