mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-14 00:17:17 +00:00
fix removing root nodes
This commit is contained in:
parent
b2860a3d73
commit
f1b2f964c0
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ impl VNode {
|
||||||
self.remove_dynamic_node(mount, dom, to, idx, dynamic_node, gen_muts);
|
self.remove_dynamic_node(mount, dom, to, idx, dynamic_node, gen_muts);
|
||||||
} else {
|
} else {
|
||||||
let mount = &dom.mounts[mount.0];
|
let mount = &dom.mounts[mount.0];
|
||||||
let id = ElementId(mount.mounted_dynamic_nodes[idx]);
|
let id = mount.root_ids[idx];
|
||||||
if gen_muts {
|
if gen_muts {
|
||||||
to.remove_node(id);
|
to.remove_node(id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue