more bugfixes

This commit is contained in:
Evan Almloff committed 2022-12-22 15:09:58 -06:00
1 parent 776c5e8839
commit 21ca1599eb
2 files changed
+16 -5

No files matched your search

+3 -1
View File
@@ -255,7 +255,9 @@ impl<'b> VirtualDom {
root: ElementId,
node: &VNode,
) {
while let Some((mut attr_id, path)) = attrs.next_if(|(_, p)| p[0] == root_idx) {
while let Some((mut attr_id, path)) =
attrs.next_if(|(_, p)| p.first().copied() == Some(root_idx))
{
let id = self.assign_static_node_as_dynamic(path, root, node, attr_id);
loop {