mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Fix _reset_focus being called on app instead of Screen (#895)
This commit is contained in:
@@ -1936,7 +1936,7 @@ class Widget(DOMNode):
|
||||
|
||||
def _on_hide(self, event: events.Hide) -> None:
|
||||
if self.has_focus:
|
||||
self.app._reset_focus(self)
|
||||
self.screen._reset_focus(self)
|
||||
|
||||
def _on_scroll_to_region(self, message: messages.ScrollToRegion) -> None:
|
||||
self.scroll_to_region(message.region, animate=True)
|
||||
|
||||
Reference in New Issue
Block a user