mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Fix clearing an OptionList
See #2557, credit to Will: https://github.com/Textualize/textual/issues/2557#issuecomment-1546883815
This commit is contained in:
@@ -631,7 +631,7 @@ class OptionList(ScrollView, can_focus=True):
|
||||
self.highlighted = None
|
||||
self._mouse_hovering_over = None
|
||||
self.virtual_size = Size(self.scrollable_content_region.width, 0)
|
||||
self.refresh()
|
||||
self._request_content_tracking_refresh()
|
||||
return self
|
||||
|
||||
def _set_option_disabled(self, index: int, disabled: bool) -> Self:
|
||||
|
||||
Reference in New Issue
Block a user