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

[Bug Report][3.5.9] Treeview: when setting the opened prop, it gets reset to an empty array #19414

Closed
JeppeKnockaert opened this issue Mar 15, 2024 · 0 comments
Assignees
Labels
C: VTreeview VTreeview T: bug Functionality that does not work as intended/expected

Comments

@JeppeKnockaert
Copy link

JeppeKnockaert commented Mar 15, 2024

Environment

Vuetify Version: 3.5.9
Vue Version: 3.4.21
Browsers: Safari 17.4
OS: Mac OS 10.15.7

Steps to reproduce

Set the opened prop directly in the template, or using data

Expected Behavior

The tree opens

Actual Behavior

The tree remains closed

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

It does work if setting the opened after mounting the tree-view, by setting the opened prop in the mounted hook, but you can't pass it directly.

I think it might be because of the watcher on openAll: https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/labs/VTreeview/VTreeview.tsx#L107

@yuwu9145 yuwu9145 self-assigned this Jul 5, 2024
@yuwu9145 yuwu9145 added T: bug Functionality that does not work as intended/expected C: VTreeview VTreeview and removed S: triage labels Jul 5, 2024
@github-actions github-actions bot closed this as completed Jul 9, 2024
@yuwu9145 yuwu9145 added this to the v3.7.0 (Odyssey) milestone Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VTreeview VTreeview T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

2 participants