We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e5cabd commit 7f9a266Copy full SHA for 7f9a266
projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid.component.ts
@@ -293,7 +293,9 @@ export class IgxTreeGridComponent extends IgxGridBaseComponent implements IGridD
293
public set expansionStates(value) {
294
this._expansionStates = this.cloneMap(value);
295
this.expansionStatesChange.emit(this._expansionStates);
296
- this.cdr.detectChanges();
+ if (this.gridAPI.grid) {
297
+ this.cdr.detectChanges();
298
+ }
299
}
300
301
/**
0 commit comments