fix bug in spruce.ts

This commit is contained in:
2026-04-02 21:46:47 -07:00
parent ae7fb5da6f
commit 6518b6847a

2
web/dist/spruce.ts vendored
View File

@@ -22,7 +22,7 @@ export function runapp<Model, Msg>(
) {
function replace(parent: Node, node: Node | undefined, child: Node) {
if (node) {
parent.insertBefore(node, child);
parent.insertBefore(child, node);
parent.removeChild(node);
} else {
parent.appendChild(child);