From 8ef10991da54b7726edf132003131699284151f6 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Thu, 26 Sep 2024 20:59:27 +0100 Subject: [PATCH] check full map for clear --- src/textual/screen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/textual/screen.py b/src/textual/screen.py index 4b6c49d425..584827ba2a 100644 --- a/src/textual/screen.py +++ b/src/textual/screen.py @@ -1125,7 +1125,8 @@ async def _on_update(self, message: messages.Update) -> None: widget = message.widget assert isinstance(widget, Widget) - if widget in self._compositor.widgets: + compositor = self._compositor + if widget in compositor.widgets or widget in compositor.full_map: self._dirty_widgets.add(widget) self.check_idle()