Skip to content

Commit

Permalink
fix(primeng/p-megaMenu): style and styleClass not working in subm…
Browse files Browse the repository at this point in the history
…enu items

Fixes primefaces#12771.
  • Loading branch information
volvachev authored and Egor Volvachev committed Mar 22, 2023
1 parent c575680 commit 1a92f4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/components/megamenu/megamenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ import { TooltipModule } from 'primeng/tooltip';
[attr.id]="item.id"
[attr.tabindex]="item.tabindex ? item.tabindex : '0'"
[ngClass]="{ 'p-disabled': item.disabled }"
[ngStyle]="item.style"
[class]="item.styleClass"
(click)="itemClick($event, item)"
pRipple
>
Expand All @@ -113,6 +115,8 @@ import { TooltipModule } from 'primeng/tooltip';
[attr.title]="item.title"
[attr.id]="item.id"
[ngClass]="{ 'p-disabled': item.disabled }"
[ngStyle]="item.style"
[class]="item.styleClass"
(click)="itemClick($event, item)"
[fragment]="item.fragment"
[queryParamsHandling]="item.queryParamsHandling"
Expand Down

0 comments on commit 1a92f4f

Please sign in to comment.