Skip to content

Commit

Permalink
Autocomplete: focus not being applied when clicking around input
Browse files Browse the repository at this point in the history
  • Loading branch information
HeavyRainLQ committed Jan 11, 2024
1 parent 38b44c1 commit 48a0187
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1021,8 +1021,7 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr
}

isInputClicked(event) {
if (this.multiple) return event.target === this.multiContainerEL.nativeElement || this.multiContainerEL.nativeElement.contains(event.target);
else return event.target === this.inputEL.nativeElement;
return event.target === this.inputEL.nativeElement;
}
isDropdownClicked(event) {
return this.dropdownButton?.nativeElement ? event.target === this.dropdownButton.nativeElement || this.dropdownButton.nativeElement.contains(event.target) : false;
Expand Down

0 comments on commit 48a0187

Please sign in to comment.