Commit 1edfc47
committed
fix(combobox): show selected values in multi-select trigger label
The collapsed trigger was reading only `selectedOption` (the single-value
path) and falling back to the placeholder when nothing matched, so a
multi-select dropdown with 1+ checked items still rendered "Select one or
more channels" instead of the actual selections.
Added `multiSelectLabel` derived from `multiSelectValues`:
- 1 value → that label
- 2 values → "A, B"
- 3+ → "A, B +N"
Trigger now prefers `multiSelectLabel` when present and falls back to the
single-select label / placeholder otherwise. Muted-text color also flips
off when multi has any selection.1 parent 1afa881 commit 1edfc47
1 file changed
Lines changed: 18 additions & 2 deletions
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
217 | 233 | | |
218 | 234 | | |
219 | 235 | | |
| |||
590 | 606 | | |
591 | 607 | | |
592 | 608 | | |
593 | | - | |
| 609 | + | |
594 | 610 | | |
595 | 611 | | |
596 | 612 | | |
597 | | - | |
| 613 | + | |
598 | 614 | | |
599 | 615 | | |
600 | 616 | | |
| |||
0 commit comments