From 4bd6d4f6440e32f26a3c0ad6d099fd57c222bfad Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Wed, 4 Dec 2024 15:40:51 +1300 Subject: [PATCH] Stylo: set parent flags on parent --- packages/blitz-dom/src/stylo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/blitz-dom/src/stylo.rs b/packages/blitz-dom/src/stylo.rs index 791957ea..5d3a1e0d 100644 --- a/packages/blitz-dom/src/stylo.rs +++ b/packages/blitz-dom/src/stylo.rs @@ -521,7 +521,7 @@ impl selectors::Element for BlitzNode<'_> { let parent_flags = flags.for_parent(); if !parent_flags.is_empty() { if let Some(parent) = self.parent_node() { - *parent.selector_flags.borrow_mut() |= self_flags; + *parent.selector_flags.borrow_mut() |= parent_flags; } } }