Skip to content

Commit

Permalink
Update src/utils.js
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Chandler <[email protected]>
  • Loading branch information
markfirmware and ryangjchandler authored Jan 8, 2021
1 parent a286a61 commit 8c44ee4
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 @@ -28,7 +28,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 an unexpected number of root elements. Make sure <template> has a single child element. `)
console.warn(`Alpine: <template> tag with [${directive}] encountered with an unexpected number of root elements. Make sure <template> has a single root element. `)
}
}

Expand Down

0 comments on commit 8c44ee4

Please sign in to comment.