Skip to content

Commit

Permalink
Merge pull request #16095 from primefaces/issue-16063
Browse files Browse the repository at this point in the history
Fixed #16063 - Autocomplete: with virtual scroll and item selected, i…
  • Loading branch information
cetincakiroglu authored Jul 25, 2024
2 parents 43485be + 750162b commit f2eb01c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,11 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr
this.cd.markForCheck();
};

// Added to adjust the scroller's content position when the dropdown closes.
if (this.virtualScroll) {
this.scroller.onScrollChange(event);
}

setTimeout(() => {
_hide();
}, 0); // For ScreenReaders
Expand Down

0 comments on commit f2eb01c

Please sign in to comment.