Skip to content

Commit

Permalink
Merge pull request #15920 from primefaces/revert-15917-issue-15903
Browse files Browse the repository at this point in the history
Revert "Fixed #15903 - Table | Multiple Selection with dataKey shows wrong selected row count upon CTRL+A"
  • Loading branch information
cetincakiroglu authored Jun 28, 2024
2 parents 0dc272d + 0b87b1f commit 9fb155d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1877,7 +1877,9 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
}

rangeRowsData.push(rangeRowData);

setTimeout(() => {
this._selection = [...this.selection, rangeRowData];
});
let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(rangeRowData, this.dataKey)) : null;
if (dataKeyValue) {
this.selectionKeys[dataKeyValue] = 1;
Expand Down

0 comments on commit 9fb155d

Please sign in to comment.