Skip to content

Commit

Permalink
fix: primefaces#7508, Menu: Ability to highlight the disabled item
Browse files Browse the repository at this point in the history
  • Loading branch information
ANTONA09 committed Dec 31, 2024
1 parent 8ad1260 commit 5683af8
Showing 1 changed file with 1 addition and 1 deletion.
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: classNames(cx('content'), { 'p-disabled': item.disabled })
},
getMenuItemPTOptions('content', menuContext)
);
Expand Down

0 comments on commit 5683af8

Please sign in to comment.