Sfoglia il codice sorgente

:bug: Joins selectors to meet spec (#3844)

Eric Kwoka 1 anno fa
parent
commit
995f7fc6fc
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/alpinejs/src/lifecycle.js

+ 1 - 1
packages/alpinejs/src/lifecycle.js

@@ -27,7 +27,7 @@ export function start() {
     })
 
     let outNestedComponents = el => ! closestRoot(el.parentElement, true)
-    Array.from(document.querySelectorAll(allSelectors()))
+    Array.from(document.querySelectorAll(allSelectors().join(',')))
         .filter(outNestedComponents)
         .forEach(el => {
             initTree(el)