diff --git a/src/textual/widgets/_help_panel.py b/src/textual/widgets/_help_panel.py index 9ed8421e1b..fe735f2083 100644 --- a/src/textual/widgets/_help_panel.py +++ b/src/textual/widgets/_help_panel.py @@ -73,6 +73,8 @@ def update_help(self, focused_widget: Widget | None) -> None: """ if not self.app.app_focus: return + if not self.screen.is_active: + return self.set_class(focused_widget is not None, "-show-help") if focused_widget is not None: help = focused_widget.HELP or ""