Skip to content

Commit

Permalink
Fix styles not updating when a widget is blurred
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Jul 17, 2024
1 parent c9bb137 commit 833e39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textual/screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,8 @@ def set_focus(self, widget: Widget | None, scroll_visible: bool = True) -> None:
# No focus, so blur currently focused widget if it exists
if self.focused is not None:
self.focused.post_message(events.Blur())
self.focused = None
blurred = self.focused
self.focused = None
self.log.debug("focus was removed")
elif widget.focusable:
if self.focused != widget:
Expand Down

0 comments on commit 833e39e

Please sign in to comment.