From 8a1f8ffd31d5a60433f79489123fc0aaf20ca178 Mon Sep 17 00:00:00 2001 From: Manvel Saroyan Date: Thu, 2 Jan 2020 23:37:25 +0700 Subject: [PATCH] #70 - Clone style element for non supported constructing stylesheet browsers --- src/components/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/utils.js b/src/components/utils.js index 0482095..3b6fe94 100644 --- a/src/components/utils.js +++ b/src/components/utils.js @@ -162,7 +162,7 @@ class ConstructableCSS if (this.sheet instanceof CSSStyleSheet) shadowRoot.adoptedStyleSheets = [this.sheet]; else - shadowRoot.appendChild(this.sheet); + shadowRoot.appendChild(this.sheet.cloneNode(true)); } }