Replies: 1 comment
-
| We have some tasks to look into reimplementing ComboBox with an Autocomplete. We also have an issue open for auto focusing the first item in the ComboBox. There was a contribution #9189 which was most of the way there, this should help you get started in the meantime, also, if you'd like to pick up that Issue and make a new PR, that would be most welcome now that our big refactor of the repo is done. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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