Skip to content

Commit f2eb01c

Browse files
Merge pull request #16095 from primefaces/issue-16063
Fixed #16063 - Autocomplete: with virtual scroll and item selected, i…
2 parents 43485be + 750162b commit f2eb01c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/components/autocomplete/autocomplete.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,6 +1553,11 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr
15531553
this.cd.markForCheck();
15541554
};
15551555

1556+
// Added to adjust the scroller's content position when the dropdown closes.
1557+
if (this.virtualScroll) {
1558+
this.scroller.onScrollChange(event);
1559+
}
1560+
15561561
setTimeout(() => {
15571562
_hide();
15581563
}, 0); // For ScreenReaders

0 commit comments

Comments
 (0)