Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Dec 19, 2024
1 parent 60270d6 commit 6be8050
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/torin/src/torin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,12 @@ impl<Key: NodeKey> Torin<Key> {
DirtyReason::Reorder => true,
};
for child_id in parent_children {
self.safe_invalidate(child_id, dom_adapter);
if found_node {
self.safe_invalidate(child_id, dom_adapter);
}
if child_id == node_id {
found_node = true;
}
}

// Try using the node's parent as root candidate if it has multiple children
Expand Down

0 comments on commit 6be8050

Please sign in to comment.