Skip to content

Commit 16a031b

Browse files
committed
Fixed styles logic
1 parent 5ce17e4 commit 16a031b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-element",
3-
"version": "0.0.206",
3+
"version": "0.0.207",
44
"description": "",
55
"license": "LGPL-3.0",
66
"main": "./index.js",

src/main/js-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class BaseElement extends HTMLElement {
196196

197197
if (styles) {
198198
const styleElem = document.createElement('style')
199-
styleElem.innerText = styles
199+
styleElem.appendChild(document.createTextNode(styles))
200200
stylesElement.appendChild(styleElem)
201201
}
202202

0 commit comments

Comments
 (0)