浏览代码

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

Tschallacka 3 年之前
父节点
当前提交
c10f76f8b9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 || '')
     }
 }