[Autocomplete] Custom Popper with "Action Option" keyboard support #45224
Labels
component: autocomplete
This is the name of the generic UI component, not the React module!
package: material-ui
Specific to @mui/material
status: waiting for author
Issue with insufficient information
Hey,
I'm trying to implement an
Autocomplete
with a customPopper
and an "action Item" at the top of the list. The "action item" is aListItemButton
. This renders just fine, which is great, but I'm running into issues trying to add keyboard support to this implementation. The user should be able toTab
to the "action item" in order to interact with it but when I pressTab
theAutocomplete
closes.I have not found any way to keep the menu open when I press the
Tab
key. Do you have any ideas on how I could achieve this?Implementation:
Popper Code:
onKeyDown Handler Code (
handleBaseKeyDown
is mapped to theonKeyDown
prop onAutocomplete
):Search keywords:
The text was updated successfully, but these errors were encountered: