Repository navigation
Commit dbe1496
authored
fix(app): clear VirtualMultiSelect search input on select/add (#2676)
## Why
Previously, when a user typed a search value into the `VirtualMultiSelect` and then added it as a value, the typed text was left behind in the input. This diverges from the behavior of a non-virtualized Mantine `MultiSelect` with search, which clears the input after a value is selected.
This has been requested by at least 3 independent users.
### Before
https://github.com/user-attachments/assets/24f0dba2-63cc-4e12-b164-5a02356f9fa8
### After
https://github.com/user-attachments/assets/faa0b7a0-afa4-496e-81fb-9b9ba7692ba3
## Testing
This can be tested in the preview environment by creating a dashboard filter and searching for + selecting a value.
Closes [HDX-4816](https://linear.app/clickhouse/issue/HDX-4816/clear-out-virtualmultiselect-input-when-clicking-enter-selecting-a)1 parent 013784d commit dbe1496
2 files changed
Lines changed: 8 additions & 1 deletion
File tree
- .changeset
- packages/app/src/components/VirtualMultiSelect
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
0 commit comments