Merge pull request #4844 from dy-xiaodong2022/fix-4816

Fix #4816: Menu items with no sub-items toggling border radius
pull/4858/head
Tuğçe Küçükoğlu 2023-11-21 17:08:13 +03:00 committed by GitHub
commit 72e0e3711d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
],