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.7.0] VTreeview opened prop 2-way bind issues with return-object #20376

Closed
robertzak opened this issue Aug 22, 2024 · 1 comment

Comments

@robertzak
Copy link

Environment

Vuetify Version: 3.7.0
Vue Version: 3.4.38
Browsers: Chrome 127.0.0.0
OS: Windows 10

Steps to reproduce

Click the close button. The tree will close
Click the open button. The tree doesn't open

Expected Behavior

The tree should toggle the Application node open when clicking the open button

Actual Behavior

Nothing happens despite opened being set to the exact object in the item list that should be open

Reproduction Link

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

Other comments

I'm not sure if there some configuration I'm missing, but I saw that #20350 was closed and so I'm submitting this more specific example. I have code that is trying to update the tree's opened list when something happens outside of the tree and it doesn't seem to work. This is an oversimplified example. It seems to work ok with an empty list, but not actual items in the treee.

@robertzak robertzak changed the title [Bug Report][3.7.0] [Bug Report][3.7.0] VTreeview opened prop 2-way bind issues with return-object [Bug Report][3.7.0] VTreeview opened prop 2-way bind issues with return-object Aug 22, 2024
@yuwu9145
Copy link
Member

items in data has been converted to a deep reactive proxy so items[0] in template isn't the original object.

Refactored working playground

@yuwu9145 yuwu9145 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants