primevue icon indicating copy to clipboard operation
primevue copied to clipboard

VirtualScroller: autoSize property does not work

Open lakkvak opened this issue 5 months ago • 1 comments

Describe the bug

The problem occurs in components where you can specify a virtual scroller by props (select, multiselect, autocomplete)

The autoSize property does not work, the height of the list will always be equal to scrollHeight, but should be adjusted to the number of elements

The same bug was in the old version https://github.com/primefaces/primevue/issues/5373

image image

Reproducer

https://stackblitz.com/edit/primevue-4-vite-issue-template-a7d4un?file=src%2FApp.vue

PrimeVue version

4.0.5

Vue version

4.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. specify props virtualScrollerOptions with autoSize: true
  2. try entering a value in the search to reduce the number of items in the visible list

Expected behavior

No response

lakkvak avatar Sep 04 '24 14:09 lakkvak