Skip to content

Commit

Permalink
Fixed #13934
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Dec 28, 2023
1 parent e5504df commit 6036d1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/components/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class MenuItemContent {
class="p-menu-list p-reset"
role="menu"
[attr.id]="id + '_list'"
[tabindex]="tabindex"
[attr.tabindex]="getTabIndexValue()"
[attr.data-pc-section]="'menu'"
[attr.aria-activedescendant]="activedescendant()"
[attr.aria-label]="ariaLabel"
Expand Down Expand Up @@ -432,6 +432,10 @@ export class Menu implements OnDestroy {
});
}

getTabIndexValue(): string | null {
return this.tabindex !== undefined ? this.tabindex.toString() : null;
}

onOverlayAnimationStart(event: AnimationEvent) {
switch (event.toState) {
case 'visible':
Expand Down

0 comments on commit 6036d1f

Please sign in to comment.