Skip to content

Commit

Permalink
Merge pull request #10832 from crega/master
Browse files Browse the repository at this point in the history
Fixed #10831 - SpeedDial items visible even if MenuItem object property "visible" is false
  • Loading branch information
yigitfindikli committed Nov 30, 2021
2 parents f89885f + 079e427 commit 588afd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/speeddial/speeddial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { RouterModule } from '@angular/router';
</ng-container>
</button>
<ul #list class="p-speeddial-list" role="menu">
<li *ngFor="let item of model; let i = index" [ngStyle]="getItemStyle(i)" class="p-speeddial-item" pTooltip [tooltipOptions]="item.tooltipOptions">
<li *ngFor="let item of model; let i = index" [ngStyle]="getItemStyle(i)" class="p-speeddial-item" pTooltip [tooltipOptions]="item.tooltipOptions" [ngClass]="'p-hidden': item.visible === false">
<a *ngIf="isClickableRouterLink(item); else elseBlock" pRipple [routerLink]="item.routerLink" [queryParams]="item.queryParams" class="p-speeddial-action" [ngClass]="{'p-disabled':item.disabled}" role="menuitem" [routerLinkActiveOptions]="item.routerLinkActiveOptions||{exact:false}" (click)="onItemClick($event, item)" (keydown.enter)="onItemClick($event, item, i)"
[attr.target]="item.target" [attr.id]="item.id" [attr.tabindex]="item.disabled || readonly ? null : (item.tabindex ? item.tabindex : '0')"
[fragment]="item.fragment" [queryParamsHandling]="item.queryParamsHandling" [preserveFragment]="item.preserveFragment" [skipLocationChange]="item.skipLocationChange" [replaceUrl]="item.replaceUrl" [state]="item.state">
Expand Down

0 comments on commit 588afd4

Please sign in to comment.