-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Open
Copy link
Labels
enhancementNew feature or requestNew feature or request
Description
Provide a general summary of the issue here
When using Select, ListBox, and Autocomplete, together with async loading (e.g. useAsyncList):
Popoverfails to open when no items have been provided (you can uncommentinitialFilterTextin the provided sandbox to see this).ListBoxdoesn't update when the "items" prop changes. Adjusting the "dependencies" prop doesn't help.
🤔 Expected Behavior?
- When providing an empty list of "items" to
ListBoxinside aAutocomplete- theSelectshould still allow thePopoverto open. ListBoxshould 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
shelbycotton and MichalHajdin
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
🩺 To Triage