Skip to content

Commit

Permalink
Revert "remove no longer necessary code"
Browse files Browse the repository at this point in the history
This reverts commit 7f25f73.
  • Loading branch information
yyx990803 committed Dec 28, 2016
1 parent 2768b0f commit fcc98d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/platforms/web/runtime/components/transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ export default {
const oldRawChild = this._vnode
const oldChild: any = getRealChild(oldRawChild)

// mark v-show
// so that the transition module can hand over the control to the directive
if (child.data.directives && child.data.directives.some(d => d.name === 'show')) {
child.data.show = true
}

if (oldChild && oldChild.data && !isSameChild(child, oldChild)) {
// replace old child transition data with fresh one
// important for dynamic transitions!
Expand Down

0 comments on commit fcc98d5

Please sign in to comment.