mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Make sure adding a selection later updates selected
This commit is contained in:
@@ -616,7 +616,7 @@ class SelectionList(Generic[SelectionType], OptionList):
|
||||
)
|
||||
)
|
||||
elif isinstance(item, Selection):
|
||||
cleaned_options.append(item)
|
||||
cleaned_options.append(self._make_selection(item))
|
||||
else:
|
||||
raise SelectionError(
|
||||
"Only Selection or a prompt/value tuple is supported in SelectionList"
|
||||
|
||||
Reference in New Issue
Block a user