Skip to content

Commit

Permalink
autocomplete issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maruthumj committed Apr 1, 2024
1 parent 48c8519 commit 3ade9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr
this.focusedOptionIndex.set(index);
this.scrollInView();

if (this.selectOnFocus || this.autoHighlight) {
if (this.selectOnFocus) {
this.onOptionSelect(event, this.visibleOptions()[index], false);
}
}
Expand Down

0 comments on commit 3ade9be

Please sign in to comment.