You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[combobox] Popup closes automatically when list is filtered in multiple #3181
In the multiple case, the popup stays open when items are toggled. However, the popup will close after each item toggle if the list happens to be filtered.
Expected behavior
I think it's generally better for the popup to stay open regardless of whether the list is filtered.
This was "intentional" since when you've filtered the list, clearing the input after selection would cause all the items to show again which might be disorienting for the user due to layout shift. I am open to changing the behavior, though
clearing the input after selection would cause all the items to show again
Could it retain the input value after selection? I may want to make multiple selections based on one "input filter", e.g. type "Star Wars" and pick multiple movies
Ok yeah I see that. Keeping the input value after selection is great when wanting to select multiple Star Wars movies, but slower when you want to select multiple unrelated movies. There may be cases where you can know beforehand what the more common interaction is, but not always.
I also find it more palatable to keep the input value after selection when the input is placed inside the popup, completely separate from the chips. It's a lot more awkward to do so when the input is placed alongside the chips, because the illusion is that the input value "morphs" into a chip when an item is selected.
Closing as answered: keeping the popup open and preserving the filter after selection is now documented. The related cancellation fixes shipped in v1.8.0 through #5362. Which request to cancel depends on the input’s placement; the filter still resets when the popup closes.
Activity
mj12albert commentedon Nov 11, 2025
It's reproducible on main as well: https://master--base-ui.netlify.app/react/components/combobox#multiple-select
atomiks commentedon Nov 11, 2025
This was "intentional" since when you've filtered the list, clearing the input after selection would cause all the items to show again which might be disorienting for the user due to layout shift. I am open to changing the behavior, though
mj12albert commentedon Nov 11, 2025
Could it retain the input value after selection? I may want to make multiple selections based on one "input filter", e.g. type "Star Wars" and pick multiple movies
atomiks commentedon Nov 11, 2025
@mj12albert I think that UX flow is worse as a default but it could be useful..
FWIW our behavior matches Material UI Autocomplete, though theirs closes even when not filtering
mirka commentedon Nov 11, 2025
Ok yeah I see that. Keeping the input value after selection is great when wanting to select multiple Star Wars movies, but slower when you want to select multiple unrelated movies. There may be cases where you can know beforehand what the more common interaction is, but not always.
I also find it more palatable to keep the input value after selection when the input is placed inside the popup, completely separate from the chips. It's a lot more awkward to do so when the input is placed alongside the chips, because the illusion is that the input value "morphs" into a chip when an item is selected.
mj12albert commentedon Nov 11, 2025
Yeah it seems pretty contextual based on the use-case/dataset. It seems quite easy to not auto-close and keep the input value by using
onOpenChange: https://stackblitz.com/edit/bcocshwo-kkp2dff4?file=src%2FApp.tsxIt wouldn't be as easy doing it the other way round
atomiks commentedon Oct 20, 2026
Closing as answered: keeping the popup open and preserving the filter after selection is now documented. The related cancellation fixes shipped in v1.8.0 through #5362. Which request to cancel depends on the input’s placement; the filter still resets when the popup closes.