Browse Source

Removed non breaking space, gives issues in webpack where it may be transformed into el.setAttribute('style', cache || '') (#2711)

Tschallacka 3 years ago
parent
commit
c10f76f8b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/alpinejs/src/utils/styles.js

+ 1 - 1
packages/alpinejs/src/utils/styles.js

@@ -41,7 +41,7 @@ function setStylesFromString(el, value) {
     el.setAttribute('style', value)
 
     return () => {
-        el.setAttribute('style', cache || '')
+        el.setAttribute('style', cache || '')
     }
 }