diff --git a/pyscriptjs/src/components/pybox.ts b/pyscriptjs/src/components/pybox.ts index 308f1136..c00856da 100644 --- a/pyscriptjs/src/components/pybox.ts +++ b/pyscriptjs/src/components/pybox.ts @@ -54,7 +54,7 @@ export class PyBox extends HTMLElement { this.widths.forEach((width, index)=>{ const node: ChildNode = mainDiv.childNodes[index]; - addClasses(node, [width, 'mx-1']) + addClasses(node as HTMLElement, [width, 'mx-1']) })