From ea8470b139ca6f3ee4915a88c13897acc2be8ab2 Mon Sep 17 00:00:00 2001 From: Melloware Date: Tue, 21 Nov 2023 18:30:57 -0500 Subject: [PATCH] Fix #5349: PanelMenu fix from PrimeVue (#5359) --- components/lib/panelmenu/PanelMenuBase.js | 2 +- jsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/lib/panelmenu/PanelMenuBase.js b/components/lib/panelmenu/PanelMenuBase.js index b6ed13c5d7..405441cae0 100644 --- a/components/lib/panelmenu/PanelMenuBase.js +++ b/components/lib/panelmenu/PanelMenuBase.js @@ -7,7 +7,7 @@ const classes = { headerLabel: 'p-menuitem-text', headerAction: 'p-panelmenu-header-link', panel: ({ item }) => classNames('p-panelmenu-panel', item.className), - header: ({ active, item }) => classNames('p-component p-panelmenu-header', { 'p-highlight': active, 'p-disabled': item.disabled }), + header: ({ active, item }) => classNames('p-component p-panelmenu-header', { 'p-highlight': active && !!item.items, 'p-disabled': item.disabled }), menuContent: 'p-panelmenu-content', root: ({ props }) => classNames('p-panelmenu p-component', props.className), separator: 'p-menu-separator', diff --git a/jsconfig.json b/jsconfig.json index 450713c7e6..e9c462bbf0 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -6,5 +6,6 @@ "@/service/*": ["service/*"], "@/data/*": ["data/*"] } - } + }, + "exclude": ["../node_modules", "../dist"] }