riophae / vue-treeselect

A multi-select component with nested options support for Vue.js
https://vue-treeselect.js.org/
MIT License
2.91k stars 509 forks source link

Prevent checking branch node if all children are checked #438

Open MartinMosimann opened 3 years ago

MartinMosimann commented 3 years ago

Is there an option in non-flat mode to check all children without the parent getting automatically checked?

The example "Flat Mode & Sort Values" has a description which says:

  1. "Whenever a branch node has all children checked, the branch node itself will be checked too"

I'd like to suppress this behavior. Is this somehow possible?

The parent node should stay in the 'indeterminate' state until explicitly checked.

MartinMosimann commented 3 years ago

I just found this issue which describes the same problem.