vue-treeselect icon indicating copy to clipboard operation
vue-treeselect copied to clipboard

How to only allowed a single root node being selected, but multiple child selection?

Open dreamxyz95 opened this issue 3 years ago • 1 comments

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?

dreamxyz95 avatar May 20 '21 23:05 dreamxyz95

When root node is selected, disable the rest -> https://vue-treeselect.js.org/#disable-item-selection

TitanFighter avatar May 21 '21 09:05 TitanFighter