CirclonGroup / angular-tree-component

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

#treeNodeWrapper, node not highlighted when selected #877

Open jmchick88 opened 3 years ago

jmchick88 commented 3 years ago

Versions:

I use the tree with the #treeNodeWrapperTemplate. My problem is that when a node is clicked/selected, it is not highlighed (whereas hovering works). Even if I add custom options mouse: { click: (tree, node, $event) => { TREE_ACTIONS.TOGGLE_ACTIVE(tree, node, $event); console.log(CLICK ${node.data.name}); }, },

it looks like when I click this code is not executed. Same when I call node.toggleActivated() like this : <div class="node-content-wrapper" (click)="node.toggleActivated()"> </div>

May you help me ?