Multiselect: VirtualScroll viewport doesn't resize correctly when searching #13692
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
When scrolling in a multiselect with virtual scrolling and then searching for an item, the viewport size becomes too small to display any items.
Environment
Reproducable using PrimeNg Docs https://primeng.org/multiselect#virtualscroll.
I checked the docs for v15 and v16 and was able to reproduce the bug in both.
Reproducer
No response
Angular version
16
PrimeNG version
16.3.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16
Browser(s)
Firefox 117, Chrome 116, Edge 117
Steps to reproduce the behavior
To recreate you can use the virtual scroll example from the docs https://primeng.org/multiselect#virtualscroll.
Scroll down a few items e.g. "Item 50"
Search for a specific item (to reduce the number of items displayed to 1)
Viewport size is too small to display any items
Expected behavior
The viewport should have a size necessary to display found items.
The text was updated successfully, but these errors were encountered: