Skip to content

Commit 5fc41eb

Browse files
committed
fix allow_focus override
1 parent 2c16c10 commit 5fc41eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/textual/widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2111,7 +2111,7 @@ def focusable(self) -> bool:
21112111
"""Can this widget currently be focused?"""
21122112
return (
21132113
not self.loading
2114-
and self.can_focus
2114+
and self.allow_focus()
21152115
and self.visible
21162116
and not self._self_or_ancestors_disabled
21172117
)

0 commit comments

Comments
 (0)