Skip to content

Commit fb69818

Browse files
committed
fix(GridSelection): emit correctly new selection when select all rows #5699
1 parent db7b2ee commit fb69818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/core/grid-selection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ export class IgxGridSelectionService {
559559
selectAllRows(event?) {
560560
const allRowIDs = this.getRowIDs(this.allData);
561561
const addedRows = allRowIDs.filter((rID) => !this.isRowSelected(rID));
562-
const newSelection = this.rowSelection.size ? allRowIDs.concat(this.getSelectedRows()) : addedRows;
562+
const newSelection = this.rowSelection.size ? this.getSelectedRows().concat(addedRows) : addedRows;
563563

564564
this.emitRowSelectionEvent(newSelection, addedRows, [], event);
565565
}

0 commit comments

Comments
 (0)