Skip to content

Commit

Permalink
fix: #13026 clear working properly in single mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Denny Müller authored May 11, 2023
1 parent 1d30a24 commit 0d7e959
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

0 comments on commit 0d7e959

Please sign in to comment.