Skip to content

Commit 2522a5a

Browse files
committed
refactor(auto-shadow-root): use append over appendChild
1 parent a0b9f26 commit 2522a5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/auto-shadow-root.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function autoShadowRoot(element: HTMLElement): void {
55
.attachShadow({
66
mode: template.getAttribute('data-shadowroot') === 'closed' ? 'closed' : 'open'
77
})
8-
.appendChild(template.content.cloneNode(true))
8+
.append(template.content.cloneNode(true))
99
}
1010
}
1111
}

0 commit comments

Comments
 (0)