Skip to content

Commit bc3adc7

Browse files
fix(grid): Restore groupby state - 10.2.x (#9462)
Co-authored-by: Hristo <[email protected]>
1 parent c6344fd commit bc3adc7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/igniteui-angular/src/lib/grids/grid/grid.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,9 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
878878
public onChipClicked(event: IChipClickEventArgs) {
879879
const sortingExpr = this.sortingExpressions;
880880
const columnExpr = sortingExpr.find((expr) => expr.fieldName === event.owner.id);
881+
const groupExpr = this.groupingExpressions.find((expr) => expr.fieldName === event.owner.id);
881882
columnExpr.dir = 3 - columnExpr.dir;
883+
groupExpr.dir = columnExpr.dir;
882884
this.sort(columnExpr);
883885
this.notifyChanges();
884886
}

0 commit comments

Comments
 (0)