assign parents through fragments

This commit is contained in:
Evan Almloff committed 2023-09-11 16:16:16 -05:00
1 parent 35b643e23f
commit d81d3ebaef
4 files changed
+13 -6

No files matched your search

+1 -1
View File
@@ -485,7 +485,7 @@ impl<'b> VirtualDom {
Text(text) => self.create_dynamic_text(parent, text),
Placeholder(place) => self.create_placeholder(place, parent),
Component(component) => self.create_component_node(Some(parent), component),
Fragment(frag) => frag.iter().map(|child| self.create(child)).sum(),
Fragment(frag) => self.create_children(*frag, Some(parent)),
}
}