Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Menu] Support for menu without default selected first item #8732

Closed
1 task done
willemx opened this issue Oct 17, 2017 · 2 comments
Closed
1 task done

[Menu] Support for menu without default selected first item #8732

willemx opened this issue Oct 17, 2017 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@willemx
Copy link

willemx commented Oct 17, 2017

When a Menu has no selected items, it always has a highlighted first item.

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

If I open a menu that has no item with select={true} I would expect the menu to open with the first item highlighted for as long as the cursor is hovering over it and then when the cursor moves to another item, the first item should be un-highlighted. So, only the item that is under the cursor should be highlighted if there is no selected item.

Current Behavior

When the menu (with no selected items) opens, the first item is highlighted and remains highlighted (suggesting that it is somehow selected) while the cursor hovers over other items.

Steps to Reproduce (for bugs)

See simple menu demo

Context

I am using a Menu to display a list of commands/actions that a user might want to execute. So I should like the menu to highlight only the command that the user is currently hovering over with the mouse. (Or on a touch device, no command should be highlighted)

Your Environment

Tech Version
Material-UI 1.0.0. beta 17
React
browser
etc
@oliviertassinari oliviertassinari added the duplicate This issue or pull request already exists label Oct 17, 2017
@oliviertassinari
Copy link
Member

Duplicate of #5186

@oliviertassinari oliviertassinari marked this as a duplicate of #5186 Oct 17, 2017
@AlexYegupov
Copy link

seems <Menu disableAutoFocusItem solves the problem for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants