-
Notifications
You must be signed in to change notification settings - Fork 829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug with validate_highlighted
after empty OptionList?
#3560
Comments
validate_highlighted
?validate_highlighted
after empty OptionList?
If I'm right that |
My recollection is that the intended design is that it retains a highlight once there is a highlight |
My memory is a little hazy on this issue but I think this is now fixed, likely as part of #3912. Closing. |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
This follows on from discussion #3559 about confusing errors when trying to remove options from a
SelectionList
.It looks like parent
OptionList
widget was designed to always have a highlighted option based on the validation?textual/src/textual/widgets/_option_list.py
Lines 987 to 992 in e68e6e3
But if you start with an empty
OptionList
and then add options later, thehighlighted
reactive is still None which suggests this validation must not be called.The text was updated successfully, but these errors were encountered: