Commit dfbc3c3e2d1c5910f2e684c2c52019409fb3d7b8
1 parent
c4b89e29
Fix nav tree component - run callbacks in angular zone
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -150,13 +150,13 @@ export class NavTreeComponent implements OnInit { |
150 | 150 | this.treeElement.on('changed.jstree', (e: any, data) => { |
151 | 151 | const node: NavTreeNode = data.instance.get_selected(true)[0]; |
152 | 152 | if (this.onNodeSelected) { |
153 | - this.onNodeSelected(node, e as Event); | |
153 | + this.ngZone.run(() => this.onNodeSelected(node, e as Event)); | |
154 | 154 | } |
155 | 155 | }); |
156 | 156 | |
157 | 157 | this.treeElement.on('model.jstree', (e: any, data) => { |
158 | 158 | if (this.onNodesInserted) { |
159 | - this.onNodesInserted(data.nodes, data.parent); | |
159 | + this.ngZone.run(() => this.onNodesInserted(data.nodes, data.parent)); | |
160 | 160 | } |
161 | 161 | }); |
162 | 162 | ... | ... |