Skip to content

Commit

Permalink
fix(renderer): check vnode type is svg tag
Browse files Browse the repository at this point in the history
close vuejs#639
  • Loading branch information
Coolyang1996 committed Jan 20, 2020
1 parent 1542b5e commit 80a8133
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/runtime-core/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ import {
EMPTY_ARR,
isReservedProp,
isFunction,
PatchFlags
PatchFlags,
isSVGTag
} from '@vue/shared'
import { queueJob, queuePostFlushCb, flushPostFlushCbs } from './scheduler'
import {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 80a8133

Please sign in to comment.