Skip to content

Commit

Permalink
refactor(select): utilize add_options method (#5256)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomJGooding authored Nov 27, 2024
1 parent 9f19f5f commit e52692a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/textual/widgets/_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,7 @@ def _setup_options_renderables(self) -> None:

option_list = self.query_one(SelectOverlay)
option_list.clear_options()
for option in self._select_options:
option_list.add_option(option)
option_list.add_options(self._select_options)

def _init_selected_option(self, hint: SelectType | NoSelection = BLANK) -> None:
"""Initialises the selected option for the `Select`."""
Expand Down

0 comments on commit e52692a

Please sign in to comment.