Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Jul 22, 2024
1 parent 63535c7 commit bcf20b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/textual/widgets/_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ def _watch_expanded(self, expanded: bool) -> None:
try:
overlay = self.query_one(SelectOverlay)
except NoMatches:
# The widget has likely been removed
return
self.set_class(expanded, "-expanded")
if expanded:
Expand Down

0 comments on commit bcf20b6

Please sign in to comment.