Skip to content

Commit

Permalink
Merge pull request #11970 from primefaces/issue-11928
Browse files Browse the repository at this point in the history
Fixed #11928 - MenuItem visible property not working in Menu <p-menu>…
  • Loading branch information
cetincakiroglu authored Sep 23, 2022
2 parents 1de4b6b + 44cfb31 commit 2ade625
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/app/components/menu/menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
}

.p-menu .p-submenu-header{
display: flex;
align-items: center;
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/components/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class MenuItemContent {
<ul class="p-menu-list p-reset" role="menu">
<ng-template ngFor let-submenu [ngForOf]="model" *ngIf="hasSubMenu()">
<li class="p-menu-separator" *ngIf="submenu.separator" [ngClass]="{'p-hidden': submenu.visible === false}" role="separator"></li>
<li class="p-submenu-header" [attr.data-automationid]="submenu.automationId" *ngIf="!submenu.separator" [ngClass]="{'p-hidden': submenu.visible === false}" pTooltip [tooltipOptions]="submenu.tooltipOptions" role="none">
<li class="p-submenu-header" [attr.data-automationid]="submenu.automationId" *ngIf="!submenu.separator" [ngClass]="{'p-hidden': submenu.visible === false, 'flex': submenu.visible}" pTooltip [tooltipOptions]="submenu.tooltipOptions" role="none">
<span *ngIf="submenu.escape !== false; else htmlSubmenuLabel">{{submenu.label}}</span>
<ng-template #htmlSubmenuLabel><span [innerHTML]="submenu.label"></span></ng-template>
</li>
Expand Down

0 comments on commit 2ade625

Please sign in to comment.