Skip to content

Commit

Permalink
Merge pull request #743 from cie/master
Browse files Browse the repository at this point in the history
Correct wording of warning message
  • Loading branch information
calebporzio authored Sep 5, 2020
2 parents 2247289 + a70e166 commit 999356a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`)
}
}

Expand Down

0 comments on commit 999356a

Please sign in to comment.