ComboBox: Force ListBox to be open #5462
Unanswered
austincrim
asked this question in
Q&A
Replies: 2 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.
3 replies
-
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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to build a CMD + K-like interface using a
ComboBox
inside of aDialog
. I want theListBox
options to always be visible, regardless if theInput
has been typed in or manually focused (using theComboBox
menuTrigger
prop).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.
Stackblitz link
CleanShot.2023-11-22.at.15.14.50.mp4
As 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.
All reactions