CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.09k stars 488 forks source link

selecting parent node does not select children with hasChildren true #940

Open sutej-pal opened 2 years ago

sutej-pal commented 2 years ago

I am using v7.2.0 with angular 5.

HTML <tree-root #treeRoot [nodes]="nodesOfSites" [options]="options"></tree-root> TS nodesOfSites = []; options: any = { useCheckbox: true, getChildren: (node: TreeNode) => this.getChildren(node) }; When I select the parent node, it does not select all child nodes. All the child nodes with hasChildren: false get selected but child nodes with hasChildren: true does not get selected.

ThomasThelen commented 2 years ago

Just as a data point, I'm using @circlon/angular-tree-component 11.0.4 with Angular 13.3.3 and it seems to be working for me