diff --git a/projects/igniteui-angular/src/lib/grids/grid/groupby-row.component.ts b/projects/igniteui-angular/src/lib/grids/grid/groupby-row.component.ts index 473fe5bbbc6..35b99b4e115 100644 --- a/projects/igniteui-angular/src/lib/grids/grid/groupby-row.component.ts +++ b/projects/igniteui-angular/src/lib/grids/grid/groupby-row.component.ts @@ -278,8 +278,8 @@ export class IgxGridGroupByRowComponent implements OnDestroy { * @hidden @internal */ public get selectedRowsInTheGroup(): any[] { - const selectedIds = this.gridSelection.filteredSelectedRowIds; - return this.groupRow.records.filter(rowID => selectedIds.indexOf(this.getRowID(rowID)) > -1); + const selectedIds = new Set(this.gridSelection.filteredSelectedRowIds); + return this.groupRow.records.filter(rowID => selectedIds.has(this.getRowID(rowID))); } /**