Skip to content

Commit

Permalink
Fixed #15903 - Table | Multiple Selection with dataKey shows wrong se…
Browse files Browse the repository at this point in the history
…lected row count upon CTRL+A
  • Loading branch information
mehmetcetin01140 committed Jun 25, 2024
1 parent 1a7c2cf commit d672cc2
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 d672cc2

Please sign in to comment.