Skip to content

Commit 896dc2a

Browse files
committed
fix append not moving existing node to the end
1 parent ff6ce72 commit 896dc2a

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
@@ -185,7 +185,7 @@ export function append_hydration(target: NodeEx, node: NodeEx) {
185185
} else {
186186
target.actual_end_child = node.nextSibling;
187187
}
188-
} else if (node.parentNode !== target) {
188+
} else if (node.parentNode !== target || node.nextSibling !== null) {
189189
target.appendChild(node);
190190
}
191191
}

0 commit comments

Comments
 (0)