Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vuetify treeview - select parent without selecting children

When using the treeview component from Vuetify, I am attempting to be able to select a parent without having it also select all of the descendants (children). I've tried various combinations of selectable, activatable, etc... but can't seem to find the appropriate combination.

Anyone have any pointers for achieving this desired result?

like image 416
Jon B. Avatar asked Sep 15 '25 19:09

Jon B.


1 Answers

I had the same problem, just add the selection-type="independent" attribute to your treeview component

UPD: Example on CodePen https://codepen.io/anon/pen/LwOJRE

Documentation https://vuetifyjs.com/en/components/treeview#selection-type

like image 109
Александр Алибутаев Avatar answered Sep 18 '25 08:09

Александр Алибутаев