Skip to content

Commit

Permalink
Merge pull request #15631 from Sinan997/issue-15624
Browse files Browse the repository at this point in the history
add `p-disabled` to the chip icon if option is disabled
  • Loading branch information
cetincakiroglu authored Jul 4, 2024
2 parents 2140f19 + 479647c commit 4f7d691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/multiselect/multiselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export class MultiSelectItem {
<div #token *ngFor="let item of chipSelectedItems(); let i = index" class="p-multiselect-token">
<span class="p-multiselect-token-label">{{ getLabelByValue(item) }}</span>
<ng-container *ngIf="!disabled">
<TimesCircleIcon *ngIf="!removeTokenIconTemplate" [styleClass]="'p-multiselect-token-icon'" (click)="removeOption(item, event)" [attr.data-pc-section]="'clearicon'" [attr.aria-hidden]="true" />
<TimesCircleIcon *ngIf="!removeTokenIconTemplate" [ngClass]="{'p-disabled': item[this.optionDisabled]}" [styleClass]="'p-multiselect-token-icon'" (click)="removeOption(item, event)" [attr.data-pc-section]="'clearicon'" [attr.aria-hidden]="true" />
<span *ngIf="removeTokenIconTemplate" class="p-multiselect-token-icon" (click)="removeOption(item, event)" [attr.data-pc-section]="'clearicon'" [attr.aria-hidden]="true">
<ng-container *ngTemplateOutlet="removeTokenIconTemplate"></ng-container>
</span>
Expand Down

0 comments on commit 4f7d691

Please sign in to comment.