Fix #4816: Menu items with no sub-items toggling border radius

pull/4844/head
dy-xiaodong2022 2023-11-19 21:47:19 +08:00
parent 1e98574c80
commit cffac80201
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)
}
],