ComboBox: Force ListBox to be open #5462
-
I'm trying to build a CMD + K-like interface using a I couldn't find a way to do this in the docs. Any recommendations? Here's how it looks now, but I want the list of options to be visible as soon as the dialog is opened. CleanShot.2023-11-22.at.15.14.50.mp4As an aside, the React Spectrum support page still links to creating a new GitHub Issue, when it looks like you've switched to Discussions. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Usually adding autoFocus to the input would be sufficient to handle this. However, I can see it's not working here, based off your stackblitz https://stackblitz.com/edit/stackblitz-starters-zwhkmg?file=src%2FApp.tsx |
Beta Was this translation helpful? Give feedback.
-
Hey ! having the same ambitions here, without need to reprogram an always-open ComboBox. Is it achievable with a SearchField coupled to a controlled ListBox ? |
Beta Was this translation helpful? Give feedback.
-
Chiming in that this experience is now supported via the Autocomplete component in React Aria Components: |
Beta Was this translation helpful? Give feedback.
Chiming in that this experience is now supported via the Autocomplete component in React Aria Components:
https://react-spectrum.adobe.com/react-aria/Autocomplete.html#example
https://react-spectrum.adobe.com/react-aria/examples/command-palette.html