From 523f6aa363334eade6316b55340656eac35c5c64 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 19 May 2022 14:08:55 +0800 Subject: [PATCH] chore: use existing method --- packages/runtime-core/src/hydration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index 3dd9e806..61644184 100644 --- a/packages/runtime-core/src/hydration.ts +++ b/packages/runtime-core/src/hydration.ts @@ -121,7 +121,7 @@ export function createHydrationFunctions( // #5728 empty text node inside a slot can cause hydration failure // because the server rendered HTML won't contain a text node if (vnode.children === '') { - insert((vnode.el = createText('')), node.parentElement!, node) + insert((vnode.el = createText('')), parentNode(node)!, node) nextNode = node } else { nextNode = onMismatch()