-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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][Divider] Do not allow focus on Divider when inside Menu list #38102
[Menu][Divider] Do not allow focus on Divider when inside Menu list #38102
Conversation
Netlify deploy previewhttps://deploy-preview-38102--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
87dbbce
to
9e9bec3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@divyammadhok The logic makes sense. Could you kindly add a test case to verify the fix? It can be added in packages\mui-material\src\Menu\Menu.test.js
. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@divyammadhok Thanks for the contribution!
@ZeeshanTamboli Thanks a lot! |
Fixes #37306
Description
The issue was that if a list of menu items also contains a divider, and all menu items are disabled, tabindex=0 will be set on the divider.