We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82b28a5 commit f8c6f8cCopy full SHA for f8c6f8c
packages/runtime-dom/src/nodeOps.ts
@@ -9,11 +9,7 @@ let tempSVGContainer: SVGElement
9
10
export const nodeOps: Omit<RendererOptions<Node, Element>, 'patchProp'> = {
11
insert: (child, parent, anchor) => {
12
- if (anchor) {
13
- parent.insertBefore(child, anchor)
14
- } else {
15
- parent.appendChild(child)
16
- }
+ parent.insertBefore(child, anchor || null)
17
},
18
19
remove: child => {
0 commit comments