From cffac802014495d21585e69c6f353b6f3bdea287 Mon Sep 17 00:00:00 2001 From: dy-xiaodong2022 Date: Sun, 19 Nov 2023 21:47:19 +0800 Subject: [PATCH] Fix #4816: Menu items with no sub-items toggling border radius --- components/lib/panelmenu/style/PanelMenuStyle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/panelmenu/style/PanelMenuStyle.js b/components/lib/panelmenu/style/PanelMenuStyle.js index b93d4329a..ffeeeebf2 100644 --- a/components/lib/panelmenu/style/PanelMenuStyle.js +++ b/components/lib/panelmenu/style/PanelMenuStyle.js @@ -43,7 +43,7 @@ const classes = { header: ({ instance, item }) => [ 'p-panelmenu-header', { - 'p-highlight': instance.isItemActive(item), + 'p-highlight': instance.isItemActive(item) && !!item.items, 'p-disabled': instance.isItemDisabled(item) } ],