From fef28c1eb14ec90001cef0fe6b6b1a14e8982f1f Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 2 Jun 2016 14:27:54 -0400 Subject: [PATCH] only mount child component to existing element if hydrating --- src/core/vdom/create-component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/vdom/create-component.js b/src/core/vdom/create-component.js index b2eb2865..a0a09050 100644 --- a/src/core/vdom/create-component.js +++ b/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 (