Skip to content

Commit

Permalink
Fix primefaces#7508: Disabled Menu item display (primefaces#7537)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Dec 31, 2024
1 parent 8ad1260 commit c4ea455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/lib/menu/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export const Menu = React.memo(
{
onClick: (event) => onItemClick(event, item, key),
onMouseMove: (event) => onItemMouseMove(event, key),
className: cx('content')
className: cx('content', { item })
},
getMenuItemPTOptions('content', menuContext)
);
Expand Down
2 changes: 1 addition & 1 deletion components/lib/menu/MenuBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const classes = {
'p-ripple-disabled': (context && context.ripple === false) || PrimeReact.ripple === false
}),
menu: 'p-menu-list p-reset',
content: 'p-menuitem-content',
content: ({ item }) => classNames('p-menuitem-content', { 'p-disabled': item.disabled }),
action: ({ item }) => classNames('p-menuitem-link', { 'p-disabled': item.disabled }),
menuitem: ({ focused }) => classNames('p-menuitem', { 'p-focus': focused }),
submenuHeader: ({ submenu }) =>
Expand Down

0 comments on commit c4ea455

Please sign in to comment.