Skip to content

Commit

Permalink
fix tab style (#706)
Browse files Browse the repository at this point in the history
This fixes an issue that @hydra was experiencing with styling on tabs. It appears that sequential tabs receive the inherited properties of previous tabs.

This was happening because there was an early return in style_view without restoring
  • Loading branch information
jrmoulton authored Dec 9, 2024
1 parent 0b0ce61 commit bd92509
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bd92509

Please sign in to comment.