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

TreeSelect: expandedKeys not working #5967

Closed
AericN opened this issue Jun 25, 2024 · 2 comments · Fixed by #6501
Closed

TreeSelect: expandedKeys not working #5967

AericN opened this issue Jun 25, 2024 · 2 comments · Fixed by #6501
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@AericN
Copy link

AericN commented Jun 25, 2024

Describe the bug

When passing 'expandedKeys' to TreeSelect it doesn't expand the specified key. I pass the data as expandedKeys="{'1':true}". This functionality works when the component is a Tree but not as TreeSelect. Is there a different way to do it?

Reproducer

https://stackblitz.com/edit/cynavd-c9cvw9?file=src%2FApp.vue

PrimeVue version

3.50.0

Vue version

3.x

Language

ES6

Build / Runtime

Vite

Browser(s)

Chrome Version 126.0.6478.116

Steps to reproduce the behavior

Create TreeSelect component > try to set expandedKeys field

Expected behavior

When setting the expandedKeys field on a TreeSelect component the specified key should be expanded.

@AericN AericN added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 25, 2024
@james-astra
Copy link

Also facing this problem

@james-astra
Copy link

Any update on this issue?

@tugcekucukoglu tugcekucukoglu 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 Oct 2, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.1.0 milestone Oct 2, 2024
tugcekucukoglu added a commit that referenced this issue Oct 2, 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

Successfully merging a pull request may close this issue.

3 participants