From faab2ec4639c02379e18347dd642336c277c90de Mon Sep 17 00:00:00 2001 From: Lukas Matta Date: Mon, 4 Nov 2024 15:59:23 +0100 Subject: [PATCH] Fix change detection in sorting --- .../lib/components/cps-tree-table/cps-tree-table.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/cps-ui-kit/src/lib/components/cps-tree-table/cps-tree-table.component.ts b/projects/cps-ui-kit/src/lib/components/cps-tree-table/cps-tree-table.component.ts index ae61e02a..0f228643 100644 --- a/projects/cps-ui-kit/src/lib/components/cps-tree-table/cps-tree-table.component.ts +++ b/projects/cps-ui-kit/src/lib/components/cps-tree-table/cps-tree-table.component.ts @@ -1343,6 +1343,7 @@ export class CpsTreeTableComponent onSort(event: any) { this.sorted.emit(event); setTimeout(() => { + this.cdRef.detectChanges(); this._calcAutoLayoutHeaderWidths(true); }); }