Skip to content

Commit

Permalink
Merge pull request #13028 from denny99/13026
Browse files Browse the repository at this point in the history
fix(autocomplete): #13026 clear working properly in single mode
  • Loading branch information
cetincakiroglu authored May 18, 2023
2 parents ee9f480 + 0d7e959 commit 43f10ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,11 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr
}

clear() {
this.value = null;
this.inputValue = null;
if (this.multiple) {
this.value = null;
this.multiInputEL.nativeElement.value = '';
} else {
this.inputValue = null;
this.inputEL.nativeElement.value = '';
}

Expand Down

1 comment on commit 43f10ea

@vercel
Copy link

@vercel vercel bot commented on 43f10ea May 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.