From d45d19b194788c224021b2a418c77102bea665fc Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Thu, 6 Jun 2024 18:00:34 +0100 Subject: [PATCH] simplify --- src/textual/message_pump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/message_pump.py b/src/textual/message_pump.py index d4eb304f11..383d8c3501 100644 --- a/src/textual/message_pump.py +++ b/src/textual/message_pump.py @@ -746,7 +746,7 @@ async def _on_message(self, message: Message) -> None: if message._sender is not None and message._sender == self._parent: # parent is sender, so we stop propagation after parent message.stop() - if self.is_parent_active and not self._parent._closing and self.is_attached: + if self.is_parent_active and self.is_attached: message._bubble_to(self._parent) def check_idle(self) -> None: