Open
Description
Provide a general summary of the issue here
When using Select
, ListBox
, and Autocomplete
, together with async loading (e.g. useAsyncList
):
Popover
fails to open when no items have been provided (you can uncommentinitialFilterText
in the provided sandbox to see this).ListBox
doesn't update when the "items" prop changes. Adjusting the "dependencies" prop doesn't help.
π€ Expected Behavior?
- When providing an empty list of "items" to
ListBox
inside aAutocomplete
- theSelect
should still allow thePopover
to open. ListBox
should render the new "items" after fetching them asynchronously.
π― Current Behavior
Described in the general summary of the issue.
π Possible Solution
No response
π¦ Context
My use case is having no "items" at first, and only loading them in after the user has typed something in. I think this is a pretty popular scenario where, instead of returning an unrelated list of "items" on the first load (or hitting the API unncessarily without the user's interaction with the field), we require an explicit input/interaction from the user.
π₯οΈ Steps to Reproduce
https://codesandbox.io/p/sandbox/small-sea-jst6zm
Version
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
macOS 15.3.1
π§’ Your Company/Team
No response
π· Tracking Issue
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
π©Ί To Triage