fix append not moving existing node to the end

pull/6602/head
Altan Birler 5 years ago
parent ff6ce725bf
commit 896dc2a013

@ -185,7 +185,7 @@ export function append_hydration(target: NodeEx, node: NodeEx) {
} else {
target.actual_end_child = node.nextSibling;
}
} else if (node.parentNode !== target) {
} else if (node.parentNode !== target || node.nextSibling !== null) {
target.appendChild(node);
}
}

Loading…
Cancel
Save