Dropdown: autoSize works incorrectly with filter and not only #5073
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When first opened, the height of the list will always be equal to scrollHeight, even if the number of items fits into a smaller size. When you enter a filter value, the height is set to the correct size, but I would like it to set the automatic height when opening the dropdown.
Also after entering the filter value and closing the dd, and after a new opening the height is not set automatically
Without a filter, the height does not adjust for the number of elements
Reproducer
https://stackblitz.com/edit/aqjwcg?file=src%2FApp.vue
PrimeVue version
3.46.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
The height should automatically adjust to the number of elements when dd is first opened
The text was updated successfully, but these errors were encountered: