Skip to content

Commit

Permalink
fix(tree-controller): handle change dection in expandToParent properly (
Browse files Browse the repository at this point in the history
  • Loading branch information
Georgii Rychko authored Apr 3, 2018
1 parent cbef0f9 commit d6414d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tree-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ export class TreeController {
if (tree) {
const controller = this.treeService.getController(tree.id);
if (controller) {
controller.expand();
this.expandToParent(tree.parent);
requestAnimationFrame(() => {
controller.expand();
this.expandToParent(tree.parent);
});
}
}
}
Expand Down

0 comments on commit d6414d5

Please sign in to comment.