From 5ee032f2efcc89069abffff70d954eee66ff9e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Wed, 7 Feb 2024 13:12:10 +0300 Subject: [PATCH] Fixed #14659 - Dropdown | dropdown options float to the top when searching --- src/app/components/dropdown/dropdown.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index a8d0ac6d350..a7d63d943c6 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -1778,6 +1778,9 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV this.focusedOptionIndex.set(-1); this.onFilter.emit({ originalEvent: event, filter: this._filterValue() }); !this.virtualScrollerDisabled && this.scroller.scrollToIndex(0); + setTimeout(() => { + this.overlayViewChild.alignOverlay() + }); this.cd.markForCheck(); }