diff --git a/packages/runtime-dom/src/nodeOps.ts b/packages/runtime-dom/src/nodeOps.ts index 6d766385..72aa25a3 100644 --- a/packages/runtime-dom/src/nodeOps.ts +++ b/packages/runtime-dom/src/nodeOps.ts @@ -9,11 +9,7 @@ let tempSVGContainer: SVGElement export const nodeOps: Omit, 'patchProp'> = { insert: (child, parent, anchor) => { - if (anchor) { - parent.insertBefore(child, anchor) - } else { - parent.appendChild(child) - } + parent.insertBefore(child, anchor || null) }, remove: child => {