Skip to content

Commit 63dd9d3

Browse files
committed
remove transition text node warn because the wrapped component may return empty nodes
1 parent bbc07af commit 63dd9d3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/platforms/web/runtime/components/transition.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,8 @@ export default {
4747
return
4848
}
4949

50-
// warn text nodes
51-
if (process.env.NODE_ENV !== 'production' &&
52-
children.length === 1 && !children[0].tag) {
53-
warn(
54-
'<transition> can only be used on elements or components, not text nodes.',
55-
this.$parent
56-
)
57-
}
58-
5950
// filter out text nodes (possible whitespaces)
6051
children = children.filter(c => c.tag)
61-
6252
if (!children.length) {
6353
return
6454
}

0 commit comments

Comments
 (0)