mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Get the selection value tracker in place before calling the superclass
This commit is contained in:
@@ -207,6 +207,7 @@ class SelectionList(Generic[SelectionType], OptionList):
|
||||
classes: The CSS classes of the selection list.
|
||||
disabled: Whether the selection list is disabled or not.
|
||||
"""
|
||||
self._selected: dict[SelectionType, None] = {}
|
||||
super().__init__(
|
||||
*[self._make_selection(selection) for selection in selections],
|
||||
name=name,
|
||||
@@ -214,7 +215,6 @@ class SelectionList(Generic[SelectionType], OptionList):
|
||||
classes=classes,
|
||||
disabled=disabled,
|
||||
)
|
||||
self._selected: dict[SelectionType, None] = {}
|
||||
|
||||
@property
|
||||
def selected(self) -> list[SelectionType]:
|
||||
|
||||
Reference in New Issue
Block a user