We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b4a5a1 commit f764db4Copy full SHA for f764db4
src/platforms/web/runtime/components/transition.js
@@ -54,6 +54,14 @@ function placeholder (h, rawChild) {
54
: null
55
}
56
57
+function hasParentTransition (vnode) {
58
+ while ((vnode = vnode.parent)) {
59
+ if (vnode.data.transition) {
60
+ return true
61
+ }
62
63
+}
64
+
65
export default {
66
name: 'transition',
67
props: transitionProps,
@@ -95,7 +103,7 @@ export default {
95
103
96
104
// if this is a component root node and the component's
97
105
// parent container node also has transition, skip.
98
- if (this.$vnode.parent && this.$vnode.parent.data.transition) {
106
+ if (hasParentTransition(this.$vnode)) {
99
107
return rawChild
100
108
101
109
0 commit comments