Skip to content

Commit

Permalink
fix append not moving existing node to the end
Browse files Browse the repository at this point in the history
  • Loading branch information
hbirler committed Jul 25, 2021
1 parent 63f592e commit 32ce595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/internal/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,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);
}
}
Expand Down

0 comments on commit 32ce595

Please sign in to comment.