diff --git a/src/platforms/web/runtime/components/transition.js b/src/platforms/web/runtime/components/transition.js index 8b0b31f9..d3295296 100644 --- a/src/platforms/web/runtime/components/transition.js +++ b/src/platforms/web/runtime/components/transition.js @@ -47,18 +47,8 @@ export default { return } - // warn text nodes - if (process.env.NODE_ENV !== 'production' && - children.length === 1 && !children[0].tag) { - warn( - ' can only be used on elements or components, not text nodes.', - this.$parent - ) - } - // filter out text nodes (possible whitespaces) children = children.filter(c => c.tag) - if (!children.length) { return }