File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/hike/widgets/navigation Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
##############################################################################
4
4
# Textual imports.
5
+ from textual import on
5
6
from textual .app import ComposeResult
6
7
from textual .containers import Vertical
8
+ from textual .events import DescendantBlur , DescendantFocus
7
9
from textual .reactive import var
8
10
from textual .widgets import Placeholder , TabbedContent
9
11
@@ -34,6 +36,13 @@ class Navigation(Vertical):
34
36
_history : var [HistoryView | None ] = var (None )
35
37
"""The history display."""
36
38
39
+ @on (DescendantBlur )
40
+ @on (DescendantFocus )
41
+ def _textual_5488_workaround (self ) -> None :
42
+ """Workaround for https://github.com/Textualize/textual/issues/5488"""
43
+ for widget in self .query (HistoryView ):
44
+ widget ._refresh_lines ()
45
+
37
46
def _watch_dock_right (self ) -> None :
38
47
"""React to the dock toggle being changed."""
39
48
self .set_class (self .dock_right , "--dock-right" )
You can’t perform that action at this time.
0 commit comments