Commit 9680f58
fix(ui-core): resync staged FilterSelect state on controlled open
Staged selections were only reset inside react-aria's onOpenChange, which
never fires for a programmatic open via the controlled isOpen prop. Move the
resync into an effect on the resolved open state so both paths refresh
staged from selectedValues.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent b2d9679 commit 9680f58
2 files changed
Lines changed: 29 additions & 4 deletions
File tree
- openmetadata-ui-core-components/src/main/resources/ui/src/components/application/filter-select
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
99 | 117 | | |
100 | 118 | | |
101 | 119 | | |
| |||
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
234 | 244 | | |
235 | 245 | | |
236 | 246 | | |
237 | 247 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | 248 | | |
242 | 249 | | |
243 | 250 | | |
| |||
0 commit comments