From 5683af8e081009765eb86936e6decbb439790245 Mon Sep 17 00:00:00 2001 From: ANTONA09 Date: Tue, 31 Dec 2024 11:11:22 +0530 Subject: [PATCH] fix: #7508, Menu: Ability to highlight the disabled item --- components/lib/menu/Menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/menu/Menu.js b/components/lib/menu/Menu.js index cc5111e166..cab10d24bb 100644 --- a/components/lib/menu/Menu.js +++ b/components/lib/menu/Menu.js @@ -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) );