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
I'm trying to make a hybrid between Combobox and Listbox.
If isSearchable is true, it should behave like a Combobox. Otherwise, it should act like a Listbox and not allow typing.
I'm using Combobox under the hood and both scenarios work fine overall. When isSearchable is true, I'm showing ComboboxButton on top of everything and making ComboboxInput read-only.
Still, I want to ensure the dropdown expands when the user clicks the label. It works fine when isSearchable is true, but not when it's false. I even tried to manipulate a ComboboxButton click (and the click event occurs), but the dropdown doesn't expand.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey!
I'm trying to make a hybrid between
Combobox
andListbox
.If
isSearchable
istrue
, it should behave like aCombobox
. Otherwise, it should act like aListbox
and not allow typing.I'm using
Combobox
under the hood and both scenarios work fine overall. WhenisSearchable
istrue
, I'm showingComboboxButton
on top of everything and makingComboboxInput
read-only.Still, I want to ensure the dropdown expands when the user clicks the label. It works fine when
isSearchable
istrue
, but not when it'sfalse
. I even tried to manipulate aComboboxButton
click (and the click event occurs), but the dropdown doesn't expand.→ Codesandbox
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions