Procházet zdrojové kódy

Correct wording of warning message

Bernát Kalló před 4 roky
rodič
revize
a70e166b14
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/utils.js

+ 1 - 1
src/utils.js

@@ -24,7 +24,7 @@ export function warnIfMalformedTemplate(el, directive) {
     if (el.tagName.toLowerCase() !== 'template') {
         console.warn(`Alpine: [${directive}] directive should only be added to <template> tags. See https://github.com/alpinejs/alpine#${directive}`)
     } else if (el.content.childElementCount !== 1) {
-        console.warn(`Alpine: <template> tag with [${directive}] encountered with multiple element roots. Make sure <template> only has a single child node.`)
+        console.warn(`Alpine: <template> tag with [${directive}] encountered with multiple element roots. Make sure <template> only has a single child element.`)
     }
 }