Skip to content

Commit

Permalink
fix(#13481): add id back to menu item content
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale Nguyen authored Sep 23, 2023
1 parent 396297a commit e427b2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/components/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export class SafeHtmlPipe implements PipeTransform {
<a
*ngIf="!item?.routerLink"
[attr.title]="item.title"
[attr.id]="item.id"
[attr.href]="item.url || null"
[attr.data-automationid]="item.automationId"
[attr.tabindex]="-1"
Expand All @@ -75,6 +76,7 @@ export class SafeHtmlPipe implements PipeTransform {
[attr.data-pc-section]="'action'"
[attr.aria-hidden]="true"
[attr.title]="item.title"
[attr.id]="item.id"
[queryParams]="item.queryParams"
routerLinkActive="p-menuitem-link-active"
[routerLinkActiveOptions]="item.routerLinkActiveOptions || { exact: false }"
Expand Down

0 comments on commit e427b2f

Please sign in to comment.