From d7513e0f09c8ce2576bc655fb993944587fd1d26 Mon Sep 17 00:00:00 2001 From: jrmoulton Date: Thu, 5 Dec 2024 20:15:54 -0700 Subject: [PATCH] fix tab style This fixes an issue that @hydra was experiencing with styling on tabs. It appears that sequential tabs receive the inherited properties of previous tabs. --- src/context.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/context.rs b/src/context.rs index d28af427..5c05af27 100644 --- a/src/context.rs +++ b/src/context.rs @@ -541,6 +541,7 @@ impl<'a> StyleCx<'a> { { let mut view_state = view_state.borrow_mut(); if !view_state.requested_changes.contains(ChangeFlags::STYLE) { + self.restore(); return; } view_state.requested_changes.remove(ChangeFlags::STYLE);