From 80a8133ff85e9da90e184587898d9390750aaeb9 Mon Sep 17 00:00:00 2001 From: Coolyang1996 <504575307@qq.com> Date: Mon, 20 Jan 2020 16:52:05 +0800 Subject: [PATCH] fix(renderer): check vnode type is svg tag close #639 --- packages/runtime-core/src/renderer.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index 8d79dfb7867..69ea0f85bb8 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -28,7 +28,8 @@ import { EMPTY_ARR, isReservedProp, isFunction, - PatchFlags + PatchFlags, + isSVGTag } from '@vue/shared' import { queueJob, queuePostFlushCb, flushPostFlushCbs } from './scheduler' import { @@ -221,6 +222,7 @@ export function createRenderer< } const { type, shapeFlag } = n2 + isSVG = isSVG || isSVGTag(type as string) switch (type) { case Text: processText(n1, n2, container, anchor)