From d672cc2116b303bda0663b21c76b950062b9e234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:52:40 +0300 Subject: [PATCH] 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 b15d650b46..76a24471e4 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); - 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;