Skip to content

[Menu] Add ability to disable the 'focus' on hover behaviour #1670

Open
@sebinsua

Description

@sebinsua

Feature request

Summary

My workplace has the need for a Menu containing a <Menu.Item> holding a (mui) <TextField> that is auto-focused. When using base-ui as soon as you move the mouse into the menu (even if by accident), it immediately moves the 'focus' onto a menu item, and so my text field loses its focus.

I notice that it's possible to pass in extra options into useListNavigation here but I don't think this is exposed via base-ui. Am I looking for focusItemOnHover={false} to be added or is there another way to do this? Ideally, I'd like more control over this in general.

Motivation

Menus in our app often serve multiple purposes. They are not only menus but also used as quick entries or forms. This means you can do everything via one menu and it's fast. To be clear, there might be some similarities between what I'm suggesting and something like a combobox, but really what we have are like rapid-fire forms within dropdown menus.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: menuThis is the name of the generic UI component, not the React module!enhancementThis is not a bug, nor a new feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions