Disabled MenuItem
should not display subMenuItems
?
#1925
Labels
bug
Something isn't working
has workaround
This issue has a workaround or is possible to achieve in user-land.
Describe the bug (current behavior)
Currently a
disabled
menu item will show it'ssubMenuItems
. Does it make sense to change this behavior?I.e. a disabled
MenuItem
will not call it'sonClick
handler.Expected Behavior
A disabled menu item should not show
subMenuItems
when hovered.Link to minimal repro
https://stackblitz.com/edit/github-cpdu8r?file=src%2FApp.tsx
Steps To Reproduce
Menu
Item 1_2
(note: this item is disabled)Anything else?
This can be handled conditionally at the consumer level, i.e.:
<MenuItem disabled={disabled} subMenuItems={disabled ? undefined : subMenuItems} />
The text was updated successfully, but these errors were encountered: