Skip to content

Commit

Permalink
fix(transition): fix out-in transition getting stuck with v-if (#7023)
Browse files Browse the repository at this point in the history
fix #6687
  • Loading branch information
neelance authored and yyx990803 committed Nov 16, 2017
1 parent a3246fd commit 45d7ba8
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 45d7ba8

Please sign in to comment.