Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown: autoSize works incorrectly with filter and not only #5073

Closed
lakkvak opened this issue Jan 12, 2024 · 1 comment
Closed

Dropdown: autoSize works incorrectly with filter and not only #5073

lakkvak opened this issue Jan 12, 2024 · 1 comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@lakkvak
Copy link

lakkvak commented Jan 12, 2024

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.
image

Also after entering the filter value and closing the dd, and after a new opening the height is not set automatically
image

Without a filter, the height does not adjust for the number of elementsimage

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

@lakkvak lakkvak added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 12, 2024
@mertsincan
Copy link
Member

Thanks a lot for your report! It seems like a bug. I added a milestone for this ticket. We'll fix it in the tagged milestone.

Best Regards,

@mertsincan mertsincan added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 15, 2024
@mertsincan mertsincan added this to the 3.48.0 milestone Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants