Skip to content

Commit

Permalink
Use layout_parent when iterating up tree to determine cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Feb 7, 2025
1 parent e2de9c5 commit bf0fb5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/blitz-dom/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ impl BaseDocument {
return Some(CursorIcon::Pointer);
}

maybe_node = node.parent_node();
maybe_node = node.layout_parent.get().map(|node_id| node.with(node_id));
}

// Else fallback to default cursor
Expand Down

0 comments on commit bf0fb5c

Please sign in to comment.