1
0
Эх сурвалжийг харах

fix: go in reverse for building paths

Jonathan Kelley 2 жил өмнө
parent
commit
4e75c707d1

+ 1 - 1
packages/core/src/create.rs

@@ -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