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 lovelope committed Feb 1, 2018
1 parent 21a540b commit 2de0b33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platforms/web/runtime/components/transition.js
Original file line number Diff line number Diff line change
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 2de0b33

Please sign in to comment.