Skip to content

Commit

Permalink
Merge pull request primefaces#14742 from primefaces/issue-14659
Browse files Browse the repository at this point in the history
Fixed primefaces#14659 - Dropdown | dropdown options float to the top when sear…
  • Loading branch information
cetincakiroglu authored Feb 7, 2024
2 parents b92cb23 + 5ee032f commit b8cdb86
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 b8cdb86

Please sign in to comment.