diff --git a/src/textual/widgets/_selection_list.py b/src/textual/widgets/_selection_list.py index 50777c3acc..11285922e6 100644 --- a/src/textual/widgets/_selection_list.py +++ b/src/textual/widgets/_selection_list.py @@ -713,3 +713,16 @@ def clear_options(self) -> Self: self._selected.clear() self._values.clear() return super().clear_options() + + def set_options(self, options: Iterable[SelectionType]) -> Self: + """Set options, potentially clearing existing options. + + Args: + options: Options to set. + + Returns: + The `SelectionList` instance + """ + self._selected.clear() + self._values.clear() + return super().set_options(options)