Skip to content

Commit

Permalink
Merge pull request #15904 from primefaces/issue-15903
Browse files Browse the repository at this point in the history
Fixed #15903 - Table | Multiple Selection with dataKey shows wrong se…
  • Loading branch information
cetincakiroglu committed Jun 27, 2024
2 parents d77e5d8 + d672cc2 commit 6bdfff6
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);
this._selection = [...this.selection, 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 6bdfff6

Please sign in to comment.