@fruit-ui/core 1.2.9 → 1.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fruit-ui/core",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "description": "A vanilla JS toolkit for reactive UI",
5
5
  "main": "src/index.js",
6
6
  "homepage": "https://asantagata.github.io/fruit-ui/",
package/src/index.js CHANGED
@@ -181,7 +181,7 @@ function createElementFromTemplate(template, onMounts, producer = null) {
181
181
  }
182
182
  if (template.style) {
183
183
  for (const k in template.style) {
184
- element.style[k] = template.style[k];
184
+ element.style.setProperty(k, template.style[k]);
185
185
  }
186
186
  }
187
187
  if (template.on) {
@@ -432,8 +432,8 @@ function rerenderElementFromTemplate(element, template, onMounts) {
432
432
  }
433
433
  }
434
434
  if (template.style) {
435
- for (let key in template.style) {
436
- element.style[key] = template.style[key];
435
+ for (const k in template.style) {
436
+ element.style.setProperty(k, template.style[k]);
437
437
  }
438
438
  }
439
439
  if (template.dataset) {