Skip to content

Commit

Permalink
Fixed #9513 - Autocomplete with multiple and readonly enabled still s…
Browse files Browse the repository at this point in the history
…how button to remove options
  • Loading branch information
yigitfindikli committed Mar 11, 2021
1 parent dc77be1 commit c360422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const AUTOCOMPLETE_VALUE_ACCESSOR: any = {
<li #token *ngFor="let val of value" class="p-autocomplete-token">
<ng-container *ngTemplateOutlet="selectedItemTemplate; context: {$implicit: val}"></ng-container>
<span *ngIf="!selectedItemTemplate" class="p-autocomplete-token-label">{{resolveFieldData(val)}}</span>
<span class="p-autocomplete-token-icon pi pi-times-circle" (click)="removeItem(token)" *ngIf="!disabled"></span>
<span class="p-autocomplete-token-icon pi pi-times-circle" (click)="removeItem(token)" *ngIf="!disabled && !readonly"></span>
</li>
<li class="p-autocomplete-input-token">
<input #multiIn [attr.type]="type" [attr.id]="inputId" [disabled]="disabled" [attr.placeholder]="(value&&value.length ? null : placeholder)" [attr.tabindex]="tabindex" [attr.maxlength]="maxlength" (input)="onInput($event)" (click)="onInputClick($event)"
Expand Down

0 comments on commit c360422

Please sign in to comment.