Skip to content

Commit

Permalink
revert props
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed May 23, 2024
1 parent 854da64 commit 315468b
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,16 @@ export const AUTOCOMPLETE_VALUE_ACCESSOR: any = {
[attr.aria-selected]="true"
>
<ng-container *ngTemplateOutlet="selectedItemTemplate; context: { $implicit: option }"></ng-container>
<p-chip *ngIf="!selectedItemTemplate" [label]="getOptionLabel(option)" [removable]="true" [chipProps]="chipProps">
<ng-container *ngIf="!removeIconTemplate && !chipProps?.removeIcon">
<p-chip *ngIf="!selectedItemTemplate" [label]="getOptionLabel(option)" [removable]="true">
<ng-container *ngIf="!removeIconTemplate">
<ng-template pTemplate="removeicon">
<span class="p-autocomplete-token-icon" (click)="!readonly ? removeOption($event, i) : ''">
<TimesCircleIcon [styleClass]="'p-autocomplete-token-icon'" [attr.aria-hidden]="true" />
</span>
</ng-template>
</ng-container>
</p-chip>
<span *ngIf="removeIconTemplate && !chipProps?.removeIcon" [attr.aria-hidden]="true">
<span *ngIf="removeIconTemplate" [attr.aria-hidden]="true">
<ng-template *ngTemplateOutlet="removeIconTemplate"></ng-template>
</span>
</li>
Expand Down Expand Up @@ -187,7 +187,6 @@ export const AUTOCOMPLETE_VALUE_ACCESSOR: any = {
<p-button
#ddBtn
type="button"
[buttonProps]="dropdownButtonProps"
[attr.aria-label]="dropdownAriaLabel"
styleClass="p-autocomplete-dropdown p-button-icon-only"
[disabled]="disabled"
Expand All @@ -197,7 +196,7 @@ export const AUTOCOMPLETE_VALUE_ACCESSOR: any = {
[attr.tabindex]="tabindex"
>
<span *ngIf="dropdownIcon" [ngClass]="dropdownIcon" [attr.aria-hidden]="true"></span>
<ng-container *ngIf="!dropdownIcon && !dropdownButtonProps?.icon">
<ng-container *ngIf="!dropdownIcon">
<ChevronDownIcon *ngIf="!dropdownIconTemplate" />
<ng-template *ngTemplateOutlet="dropdownIconTemplate"></ng-template>
</ng-container>
Expand Down Expand Up @@ -549,16 +548,6 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr
* @group Props
*/
@Input() overlayOptions: OverlayOptions | undefined;
/**
* Used to pass all properties of the chipProps to the Chip component.
* @group Props
*/
@Input() chipProps: ChipProps
/**
* Used to pass all properties of the ButtonProps to the Button component.
* @group Props
*/
@Input() dropdownButtonProps: ButtonProps;
/**
* An array of suggestions to display.
* @group Props
Expand Down

0 comments on commit 315468b

Please sign in to comment.