vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report][3.11.1] VTreeview with `open-all`: mutating an item causes all items to open again

Open MetRonnie opened this issue 3 months ago • 2 comments

Environment

Vuetify Version: 3.11.1 Vue Version: 3.5.25 OS: Windows 10 (current)

Steps to reproduce

Expected Behavior

[open-all] will cause all branch nodes to be opened when component is mounted.

(taken from the docs)

After mounting, which nodes are open depends on whether the user collapses/expands them.

Actual Behavior

All branch nodes are re-opened whenever any node is mutated in some way (e.g. setting disabled, class etc.)

Reproduction Link

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

Images

https://github.com/user-attachments/assets/b33fc708-7345-4a5b-80ae-a54b2053657a

MetRonnie avatar Dec 02 '25 15:12 MetRonnie

Yeah.. the prop is convenient but has limited utility in real-life scenarios. ~~You might want to switch it off, once the nodes are loaded.~~ nope, it collapses the tree.

J-Sek avatar Dec 02 '25 16:12 J-Sek

Yeah. I got same problem. Any workarounds? It would be great o have something like open-all.once

Because setting: v-bind:openAll in template and openAll.value = false; in script after some logic change does not work - it collapses the three.

arielkuzminski avatar Dec 10 '25 08:12 arielkuzminski