Skip to content

Commit

Permalink
Fixed #14430
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Dec 26, 2023
1 parent ed5d3ef commit 9b89530
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/components/menubar/menubar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ export class MenubarService {
<span class="p-menuitem-badge" *ngIf="getItemProp(processedItem, 'badge')" [ngClass]="getItemProp(processedItem, 'badgeStyleClass')">{{ getItemProp(processedItem, 'badge') }}</span>
<ng-container *ngIf="isItemGroup(processedItem)">
<ng-container *ngIf="!menubar.submenuIconTemplate">
<ng-container *ngIf="!submenuIconTemplate">
<AngleDownIcon [styleClass]="'p-submenu-icon'" *ngIf="root" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true" />
<AngleRightIcon [styleClass]="'p-submenu-icon'" *ngIf="!root" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true" />
</ng-container>
<ng-template *ngTemplateOutlet="menubar.submenuIconTemplate" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true"></ng-template>
<ng-template *ngTemplateOutlet="submenuIconTemplate" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true"></ng-template>
</ng-container>
</a>
<a
Expand Down Expand Up @@ -232,6 +232,8 @@ export class MenubarSub implements OnInit, OnDestroy {

@Input() activeItemPath: any[];

@Input() submenuIconTemplate: TemplateRef<any> | undefined;

@Output() itemClick: EventEmitter<any> = new EventEmitter();

@Output() itemMouseEnter: EventEmitter<any> = new EventEmitter();
Expand Down Expand Up @@ -380,6 +382,7 @@ export class MenubarSub implements OnInit, OnDestroy {
[ariaLabel]="ariaLabel"
[ariaLabelledBy]="ariaLabelledBy"
[focusedItemId]="focused ? focusedItemId : undefined"
[submenuIconTemplate]="submenuIconTemplate"
[activeItemPath]="activeItemPath()"
(itemClick)="onItemClick($event)"
(menuFocus)="onMenuFocus($event)"
Expand Down

0 comments on commit 9b89530

Please sign in to comment.