fix(runtime-core): isSVG check should also apply for patch branch
fix #639
This commit is contained in:
parent
e81c8a32c7
commit
035b6560f7
@ -341,6 +341,7 @@ export function createRenderer<
|
|||||||
isSVG: boolean,
|
isSVG: boolean,
|
||||||
optimized: boolean
|
optimized: boolean
|
||||||
) {
|
) {
|
||||||
|
isSVG = isSVG || (n2.type as string) === 'svg'
|
||||||
if (n1 == null) {
|
if (n1 == null) {
|
||||||
mountElement(
|
mountElement(
|
||||||
n2,
|
n2,
|
||||||
@ -368,9 +369,7 @@ export function createRenderer<
|
|||||||
isSVG: boolean,
|
isSVG: boolean,
|
||||||
optimized: boolean
|
optimized: boolean
|
||||||
) {
|
) {
|
||||||
const tag = vnode.type as string
|
const el = (vnode.el = hostCreateElement(vnode.type as string, isSVG))
|
||||||
isSVG = isSVG || tag === 'svg'
|
|
||||||
const el = (vnode.el = hostCreateElement(tag, isSVG))
|
|
||||||
const { props, shapeFlag, transition, scopeId } = vnode
|
const { props, shapeFlag, transition, scopeId } = vnode
|
||||||
|
|
||||||
// props
|
// props
|
||||||
|
Loading…
x
Reference in New Issue
Block a user