Skip to content

Commit

Permalink
Fixed #14659 - Dropdown | dropdown options float to the top when sear…
Browse files Browse the repository at this point in the history
…ching
  • Loading branch information
mehmetcetin01140 committed Feb 7, 2024
1 parent 86bda4a commit 5ee032f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 5ee032f

Please sign in to comment.