fix: go in reverse for building paths

This commit is contained in:
Jonathan Kelley committed 2022-12-15 15:49:52 -08:00
1 parent 8530db69e1
commit 4e75c707d1
1 file changed
+1 -1
+1 -1
View File
@@ -133,7 +133,7 @@ impl<'b> VirtualDom {
None => return,
};
for idx in start..=end {
for idx in (start..=end).rev() {
let m = self.create_dynamic_node(template, &template.dynamic_nodes[idx], idx);
if m > 0 {
// The path is one shorter because the top node is the root