Skip to content

Commit

Permalink
Fix layout parent setting
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Oct 23, 2024
1 parent 4879e6e commit e74aace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/blitz-dom/src/layout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ impl Document {
}
}

for &node_id in &layout_children {
self.nodes[node_id].layout_parent.set(Some(node_id));
for &child_id in &layout_children {
self.nodes[child_id].layout_parent.set(Some(node_id));
}
*self.nodes[node_id].layout_children.borrow_mut() = Some(layout_children);
// }
Expand Down

0 comments on commit e74aace

Please sign in to comment.