fix removing root nodes

This commit is contained in:
Evan Almloff 2024-01-09 12:05:27 -06:00
parent b2860a3d73
commit f1b2f964c0

View file

@ -236,7 +236,7 @@ impl VNode {
self.remove_dynamic_node(mount, dom, to, idx, dynamic_node, gen_muts);
} else {
let mount = &dom.mounts[mount.0];
let id = ElementId(mount.mounted_dynamic_nodes[idx]);
let id = mount.root_ids[idx];
if gen_muts {
to.remove_node(id);
}