fix: go in reverse for building paths
This commit is contained in:
1 parent
8530db69e1
commit
4e75c707d1
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user