Skip to content

Commit 32ce595

Browse files
committed
fix append not moving existing node to the end
1 parent 63f592e commit 32ce595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/internal/dom.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export function append_hydration(target: NodeEx, node: NodeEx) {
186186
} else {
187187
target.actual_end_child = node.nextSibling;
188188
}
189-
} else if (node.parentNode !== target) {
189+
} else if (node.parentNode !== target || node.nextSibling !== null) {
190190
target.appendChild(node);
191191
}
192192
}

0 commit comments

Comments
 (0)