Skip to content

Commit f18e6d1

Browse files
barakedrysolkimicreb
authored andcommitted
small fix to support shadow dom
small fix to allow shadow dom to work
1 parent 68b723d commit f18e6d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

render.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = function renderFactory (config) {
1414
if (config.shadow && elem.attachShadow) {
1515
const shadowRoot = elem.attachShadow({mode: 'open'})
1616
if (config.template) {
17+
const template = document.importNode(config.template, true)
1718
shadowRoot.appendChild(template)
1819
}
1920
if (config.style) {

0 commit comments

Comments
 (0)