Browse Source

only mount child component to existing element if hydrating

dev
Evan You 9 years ago
parent
commit
fef28c1eb1
  1. 2
      src/core/vdom/create-component.js

2
src/core/vdom/create-component.js

@ -98,7 +98,7 @@ export function createComponentInstanceForVnode (
function init (vnode: VNodeWithData, hydrating: boolean) {
const child = vnode.child = createComponentInstanceForVnode(vnode)
child.$mount(vnode.elm, hydrating)
child.$mount(hydrating ? vnode.elm : undefined, hydrating)
}
function prepatch (

Loading…
Cancel
Save