Skip to content

Commit

Permalink
Fixed #11839 - AutoComplete | onHide event firing on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Aug 24, 2022
1 parent 433cd8d commit 196d41d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1019,8 +1019,10 @@ export class AutoComplete implements AfterViewChecked,AfterContentInit,OnDestroy
this.unbindDocumentClickListener();
this.unbindDocumentResizeListener();
this.unbindScrollListener();
this.overlay = null;
this.onHide.emit();
if (this.overlay) {
this.overlay = null;
this.onHide.emit();
}
}

ngOnDestroy() {
Expand Down

0 comments on commit 196d41d

Please sign in to comment.