From 0b87b1f08fd7e15fc4e37f4fd3a58282adf24691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Fri, 28 Jun 2024 16:26:47 +0300 Subject: [PATCH] Revert "Fixed #15903 - Table | Multiple Selection with dataKey shows wrong selected row count upon CTRL+A" --- src/app/components/table/table.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index aa4873daa12..76a24471e46 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -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;