From 958193b19a28b16c4b88392338c7e8b85b485fe0 Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Tue, 17 Dec 2024 07:50:31 +1300 Subject: [PATCH] Fix clicking pseudos with inline hit testing Signed-off-by: Nico Burns --- packages/blitz-dom/src/layout/construct.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/blitz-dom/src/layout/construct.rs b/packages/blitz-dom/src/layout/construct.rs index 663eb27d..45b7c6f6 100644 --- a/packages/blitz-dom/src/layout/construct.rs +++ b/packages/blitz-dom/src/layout/construct.rs @@ -317,6 +317,7 @@ fn flush_pseudo_elements(doc: &mut Document, node_id: usize) { DUMMY_NAME, Vec::new(), ))); + doc.nodes[new_node_id].parent = Some(node_id); let content = &pe_style.as_ref().get_counters().content; if let Content::Items(item_data) = content {