From 1bc4dca5412f9b893af6fb82c74f065b1f8734b3 Mon Sep 17 00:00:00 2001 From: chester <373934650@qq.com> Date: Wed, 19 Jun 2024 16:46:24 +0800 Subject: [PATCH] bugfix:table column width resize error (#353) Co-authored-by: zhangyao <373933650@qq.com> --- devui/data-table/table/head/th/th.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devui/data-table/table/head/th/th.component.ts b/devui/data-table/table/head/th/th.component.ts index 6a6609a7..39043497 100644 --- a/devui/data-table/table/head/th/th.component.ts +++ b/devui/data-table/table/head/th/th.component.ts @@ -278,7 +278,7 @@ export class TableThComponent implements OnChanges, OnDestroy { this.resizing = false; // destroy overlay - this.renderer2.removeChild(this.element, this.resizeOverlay); + this.renderer2.removeChild(this.element.firstElementChild, this.resizeOverlay); this.renderer2.removeClass(this.tableViewRefElement.nativeElement, 'table-view-selector');