Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Jun 6, 2024
1 parent 3b8046d commit d45d19b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textual/message_pump.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d45d19b

Please sign in to comment.