Skip to content

Commit 12f462a

Browse files
committed
remove hack
1 parent c302f0b commit 12f462a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/textual/dom.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import threading
1111
from functools import lru_cache, partial
1212
from inspect import getfile
13+
from operator import attrgetter
1314
from typing import (
1415
TYPE_CHECKING,
1516
Any,
@@ -1214,7 +1215,7 @@ def displayed_children(self) -> list[Widget]:
12141215
Returns:
12151216
A list of nodes.
12161217
"""
1217-
return [child for child in self._nodes if child.display]
1218+
return list(filter(attrgetter("display"), self._nodes))
12181219

12191220
def watch(
12201221
self,

src/textual/screen.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,6 @@ def _move_focus(
662662
the CSS selectors given in the argument.
663663
"""
664664

665-
# TODO: This shouldn't be required
666-
self._compositor._full_map_invalidated = True
667665
if not isinstance(selector, str):
668666
selector = selector.__name__
669667
selector_set = parse_selectors(selector)

0 commit comments

Comments
 (0)