mui-toolpad
mui-toolpad copied to clipboard
[DashboardLayout] Render `NavigationItem.action` as `ListItem`'s `secondaryAction`
Summary
When a NavigationItem is not a parent item (i.e. it's a button in expanded sidebar view), and an action is provided, pointer event on the action component also propagate to the ListItem component. Following MUI practices, the action component would be better rendered as the ListItem's secondaryAction (or wrapped in the SecondaryAction child component).
Examples
No response
Motivation
No response
Search keywords: dashboard layout navigation item action secondary action