Skip to content

Commit

Permalink
fix(transition): fix out-in transition getting stuck with v-if (vuejs…
Browse files Browse the repository at this point in the history
  • Loading branch information
neelance authored and aJean committed Aug 19, 2020
1 parent 612a16e commit 7ad284e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platforms/web/runtime/components/transition.js
Expand Up @@ -161,7 +161,9 @@ export default {
oldChild &&
oldChild.data &&
!isSameChild(child, oldChild) &&
!isAsyncPlaceholder(oldChild)
!isAsyncPlaceholder(oldChild) &&
// #6687 component root is a comment node
!(oldChild.componentInstance && oldChild.componentInstance._vnode.isComment)
) {
// replace old child transition data with fresh one
// important for dynamic transitions!
Expand Down

0 comments on commit 7ad284e

Please sign in to comment.