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 e1f2c84 commit 5d5a063Copy full SHA for 5d5a063
projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid-api.service.ts
@@ -113,8 +113,7 @@ export class IgxHierarchicalGridAPIService extends GridBaseAPIService<IgxGridBas
113
public allow_expansion_state_change(rowID, expanded): boolean {
114
const rec = this.get_rec_by_id(rowID);
115
const grid = (this.grid as any);
116
- if (rec.expanded === expanded ||
117
- (grid.hasChildrenKey && !rec[grid.hasChildrenKey])) {
+ if (grid.hasChildrenKey && !rec[grid.hasChildrenKey]) {
118
return false;
119
}
120
return !!rec && this.grid.expansionStates.get(rowID) !== expanded;
0 commit comments