halower / vue-tree

tree and multi-select component based on Vue.js 2.0
https://github.com/halower/vue2-tree/blob/master/README.md
MIT License
935 stars 209 forks source link

Selecting all children is automatically selecting the parent when scoped set to true #176

Closed srikanth2042 closed 4 years ago

srikanth2042 commented 4 years ago

@halower @ddtramp @CosSalt when I set the property scoped=true, the nodes in the tree are supposed to act independently i.e. selecting a parent node should not select all of its children automatically(it's working fine) and selecting all the children should not select its parent automatically(it's not working). Was this intentional or is it a bug? Can you fix this if this is a bug?

Example: I selected node node 1-1-1: image

And then, when I select the node node 1-1-2 its automatically selecting the parent node 1-1 which was not supposed to happen when scoped(=true) mode is on. image

odanzhou commented 4 years ago

it's a bug

srikanth2042 commented 4 years ago

@CosSalt can we get this bug fixed? We are extensively using this plugin as it has excellent features. We'd love to see this plugin without bugs.

odanzhou commented 4 years ago

@srikanth2042 of course,I'm fixing it。

odanzhou commented 4 years ago

@srikanth2042 version 1.8.3 has fixed this bug

srikanth2042 commented 4 years ago

Fix working perfectly, thanks @CosSalt

amthekkel commented 3 years ago

How does one initialise pre selected checked items when using scoped=true. when building the tree data without scoped=true, nodes can be checked/selected using the selected/checked properties. however, when using scoped=true, the required nodes aren't selected. Any suggestion? tree_node For this e.g., I would expect node-1-1-1 to be pre-selected. works without scoped property set, however, i need the ability to select parent without it selecting all leaf nodes, hence looking at the scoped property.