瀏覽代碼

fix removing root nodes

Evan Almloff 1 年之前
父節點
當前提交
f1b2f964c0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/core/src/diff/node.rs

+ 1 - 1
packages/core/src/diff/node.rs

@@ -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);
                 }