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
The Autocomplete API seems pretty minimal, and the docs are somewhat lacking (maybe somewhat due to the minimal API).
All examples using a Popover put the entire Autocomplete in the Popover (command palette, emoji picker), but there isn't any documentation on how to configure a static input with the results Listbox in a Popover.
In other words I am effectively looking for a ComboBox where the first i.e. most matching item is autofocused (virtually)
The Autocomplete is missing pretty core props that would enable this sort of behavior, e.g. menuTrigger.
When I type into the input, the onBlur callback actually runs which hides my Popover. Removing the Autocomplete wrapper causes the onBlur to no longer fire. Perhaps this blur event occurs do to the "auto focusing" of the first listbox item?
What is the best way to do this? Am I better off trying to figure out how to auto focus the first item in the results list on a ComboBox?
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
Uh oh!
There was an error while loading. Please reload this page.
-
The Autocomplete API seems pretty minimal, and the docs are somewhat lacking (maybe somewhat due to the minimal API).
All examples using a
Popoverput the entireAutocompletein thePopover(command palette, emoji picker), but there isn't any documentation on how to configure a static input with the resultsListboxin aPopover.In other words I am effectively looking for a
ComboBoxwhere the first i.e. most matching item is autofocused (virtually)The
Autocompleteis missing pretty core props that would enable this sort of behavior, e.g.menuTrigger.Here is my stab:
When I type into the input, the
onBlurcallback actually runs which hides my Popover. Removing theAutocompletewrapper causes theonBlurto no longer fire. Perhaps this blur event occurs do to the "auto focusing" of the first listbox item?What is the best way to do this? Am I better off trying to figure out how to auto focus the first item in the results list on a
ComboBox?Beta Was this translation helpful? Give feedback.
All reactions