We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e81c8a3 commit 035b656Copy full SHA for 035b656
packages/runtime-core/src/renderer.ts
@@ -341,6 +341,7 @@ export function createRenderer<
341
isSVG: boolean,
342
optimized: boolean
343
) {
344
+ isSVG = isSVG || (n2.type as string) === 'svg'
345
if (n1 == null) {
346
mountElement(
347
n2,
@@ -368,9 +369,7 @@ export function createRenderer<
368
369
370
371
- const tag = vnode.type as string
372
- isSVG = isSVG || tag === 'svg'
373
- const el = (vnode.el = hostCreateElement(tag, isSVG))
+ const el = (vnode.el = hostCreateElement(vnode.type as string, isSVG))
374
const { props, shapeFlag, transition, scopeId } = vnode
375
376
// props
0 commit comments