diff --git a/src/tableview.ts b/src/tableview.ts index c3130bc8..a6ccd5f7 100644 --- a/src/tableview.ts +++ b/src/tableview.ts @@ -48,7 +48,7 @@ export function updateColumnsOnResize( ): void { let totalWidth = 0; let fixedWidth = true; - let nextDOM = colgroup.firstChild as HTMLElement; + let nextDOM = colgroup.firstElementChild as HTMLElement; const row = node.firstChild; if (!row) return;