mui-toolpad icon indicating copy to clipboard operation
mui-toolpad copied to clipboard

[DashboardLayout] Render `NavigationItem.action` as `ListItem`'s `secondaryAction`

Open marcomele opened this issue 9 months ago • 1 comments

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

marcomele avatar Mar 10 '25 19:03 marcomele