From f18e6d137634fdb974b20389b095bed5bc8ef7d9 Mon Sep 17 00:00:00 2001 From: barakedry Date: Thu, 24 Aug 2017 19:24:13 +0300 Subject: [PATCH] small fix to support shadow dom small fix to allow shadow dom to work --- render.js | 1 + 1 file changed, 1 insertion(+) diff --git a/render.js b/render.js index be8e808..6ca6ea0 100644 --- a/render.js +++ b/render.js @@ -14,6 +14,7 @@ module.exports = function renderFactory (config) { if (config.shadow && elem.attachShadow) { const shadowRoot = elem.attachShadow({mode: 'open'}) if (config.template) { + const template = document.importNode(config.template, true) shadowRoot.appendChild(template) } if (config.style) {