Skip to content

Commit 2de0b33

Browse files
neelancelovelope
authored andcommitted
fix(transition): fix out-in transition getting stuck with v-if (vuejs#7023)
fix vuejs#6687
1 parent 21a540b commit 2de0b33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ export default {
161161
oldChild &&
162162
oldChild.data &&
163163
!isSameChild(child, oldChild) &&
164-
!isAsyncPlaceholder(oldChild)
164+
!isAsyncPlaceholder(oldChild) &&
165+
// #6687 component root is a comment node
166+
!(oldChild.componentInstance && oldChild.componentInstance._vnode.isComment)
165167
) {
166168
// replace old child transition data with fresh one
167169
// important for dynamic transitions!

0 commit comments

Comments
 (0)