Fix scroll wheel while hovering over a menu separator

This commit is contained in:
Isaiah Odhner 2023-04-19 14:03:25 -04:00
parent 140ff15ff1
commit 18ef3898c6

View File

@ -188,6 +188,7 @@ class Separator(Static):
"""Initialize a separator."""
super().__init__(mid_line, **kwargs)
self.add_class("separator")
self.disabled = True
# self.disabled = True # This breaks scroll wheel over the separator, as of Textual 0.20.1
self.disabled = False
self.action = None
self.submenu = None