angular-tree-component
angular-tree-component copied to clipboard
Event triggered twice when clicking node
"angular-tree-component": "^3.7.3"
- component.html
<tree-root [nodes]="nodes" (focus)="onFocus($event)"></tree-root>
- component.ts
onFocus(event) {
console.log(event);
}
Result
Object {eventName: "focus", node: TreeNode, treeModel: TreeModel}
Object {eventName: "focus", node: TreeNode, treeModel: TreeModel}
Same problem here. Also on the Focus event.
Maybe event bubbling could be the culprit.
I have the same problem. Should probably be fixed since it will result in multiple API calls if you "do something" on focus.
I have the same problem
same problem. anyone got a way to make a node expand/close when focused given this issue? currently it will expand then close..
same problem - clicking a node fires the focus event twice. At first, I thought it is firing for both the parent and the focused child but it is firing twice with the same node.
Any feedback on this issue? Still seems to be a problem.
For me clicking a node fires the event thrice.