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>
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 ?