Skip to content

Commit

Permalink
Merge pull request #15921 from primefaces/revert-15904-issue-15903
Browse files Browse the repository at this point in the history
Revert "Fixed #15903 - Table | Multiple Selection with dataKey shows wrong se…"
  • Loading branch information
cetincakiroglu authored Jun 28, 2024
2 parents 9fb155d + 82bc660 commit ceedbb9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1877,9 +1877,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
}

rangeRowsData.push(rangeRowData);
setTimeout(() => {
this._selection = [...this.selection, rangeRowData];
});
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 ceedbb9

Please sign in to comment.