Component: Dropdown - display bug when using virtualScroll and filter together #14280
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
I defined a p-dropdown that uses the virtualScroll and the filter at the same time.
When you search for an element, the list is updated with the elements that are related to the search.
However, when the list of elements corresponding to the search contains few elements (not enough for the scroll bar to be displayed) and we click outside the list and then reopen it, then the height of the list is much too large compared to the size needed.
Environment
Angular 16.2.0
Primeng 16.9.1
Reproducer
https://stackblitz.com/edit/ca7vez?file=src%2Fapp%2Fdemo%2Fdropdown-reactive-forms-demo.html
Angular version
16.2.0
PrimeNG version
16.9.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.20.2
Browser(s)
Different versions of chrome and firefox (tried with: Chrome 119.0.6045.200, Firefox 120.0 and 91.0.1esr)
Steps to reproduce the behavior
Result : You have a list with one item (Country 1240) but the height of the list is too big.
Expected behavior
Result : You have a list with one item (Country 1240) and the height of the list is adjusted well.
The text was updated successfully, but these errors were encountered: