Commit dfbc3c3e2d1c5910f2e684c2c52019409fb3d7b8

Authored by Igor Kulikov
1 parent c4b89e29

Fix nav tree component - run callbacks in angular zone

@@ -150,13 +150,13 @@ export class NavTreeComponent implements OnInit { @@ -150,13 +150,13 @@ export class NavTreeComponent implements OnInit {
150 this.treeElement.on('changed.jstree', (e: any, data) => { 150 this.treeElement.on('changed.jstree', (e: any, data) => {
151 const node: NavTreeNode = data.instance.get_selected(true)[0]; 151 const node: NavTreeNode = data.instance.get_selected(true)[0];
152 if (this.onNodeSelected) { 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 this.treeElement.on('model.jstree', (e: any, data) => { 157 this.treeElement.on('model.jstree', (e: any, data) => {
158 if (this.onNodesInserted) { 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