Sfoglia il codice sorgente

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

Tschallacka 3 anni fa
parent
commit
c10f76f8b9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 || '')
     }
 }