Skip to content

Commit 2467fcc

Browse files
fix(grid): Restore groupby state - 11.1.x (#9461)
Co-authored-by: Radoslav Karaivanov <[email protected]>
1 parent 5f634c4 commit 2467fcc

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
@@ -920,7 +920,9 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
920920
public onChipClicked(event: IChipClickEventArgs) {
921921
const sortingExpr = this.sortingExpressions;
922922
const columnExpr = sortingExpr.find((expr) => expr.fieldName === event.owner.id);
923+
const groupExpr = this.groupingExpressions.find((expr) => expr.fieldName === event.owner.id);
923924
columnExpr.dir = 3 - columnExpr.dir;
925+
groupExpr.dir = columnExpr.dir;
924926
this.sort(columnExpr);
925927
this.notifyChanges();
926928
}

0 commit comments

Comments
 (0)