vue-treeselect
vue-treeselect copied to clipboard
How to only allowed a single root node being selected, but multiple child selection?
Hi there, I am rendering my dropdown in this way
<treeselect ref="treeselect" v-model="value" :options="options" value-format="object" multiple="true"/>
, but for this where multiple root nodes are allowed to be selected. But i want to choose only a single root node at a time with multiple child selection. May i know how can i achieve this?
When root node is selected, disable the rest -> https://vue-treeselect.js.org/#disable-item-selection