diff --git a/src/app/components/tree/tree.ts b/src/app/components/tree/tree.ts index 79997caad47..2753e606001 100755 --- a/src/app/components/tree/tree.ts +++ b/src/app/components/tree/tree.ts @@ -1353,7 +1353,9 @@ export class Tree implements OnInit, AfterContentInit, OnChanges, OnDestroy, Blo this.onNodeUnselect.emit({ originalEvent: event, node: node }); } else { this.selection = node; - this.onNodeSelect.emit({ originalEvent: event, node: node }); + setTimeout(() => { + this.onNodeSelect.emit({ originalEvent: event, node: node }); + }); } } else { if (selected) { @@ -1361,7 +1363,9 @@ export class Tree implements OnInit, AfterContentInit, OnChanges, OnDestroy, Blo this.onNodeUnselect.emit({ originalEvent: event, node: node }); } else { this.selection = [...(this.selection || []), node]; - this.onNodeSelect.emit({ originalEvent: event, node: node }); + setTimeout(() => { + this.onNodeSelect.emit({ originalEvent: event, node: node }); + }); } }