Skip to content

Commit

Permalink
fix keep-alive nested child components
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 28, 2016
1 parent 3661b4e commit dde29d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/vdom/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function createPatchFunction (backend) {
if (isDef(i = data.hook) && isDef(i = i.destroy)) i(vnode)
for (i = 0; i < cbs.destroy.length; ++i) cbs.destroy[i](vnode)
}
if (isDef(i = vnode.child)) {
if (isDef(i = vnode.child) && !data.keepAlive) {
invokeDestroyHook(i._vnode)
}
if (isDef(i = vnode.children)) {
Expand Down

0 comments on commit dde29d7

Please sign in to comment.