diff --git a/src/app/components/tree/tree.ts b/src/app/components/tree/tree.ts index 7e6e56987dd..afe15afd9ec 100755 --- a/src/app/components/tree/tree.ts +++ b/src/app/components/tree/tree.ts @@ -1358,7 +1358,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) { @@ -1366,7 +1368,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 }); + }); } }