Textualize / textual

The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
https://textual.textualize.io/
MIT License
25.73k stars 792 forks source link

Select widget content not appearing in overlay #5161

Open darrenburns opened 1 month ago

darrenburns commented 1 month ago

Some times when I open the Select dropdown using the keyboard, the content in the dropdown is not visible, it's just an empty box. It's still functional, but nothing is visible.

I'm not sure the conditions to replicate consistently yet - I think it's happening in apps with a lot of widget. Maybe a race condition.

willmcgugan commented 3 weeks ago

I can't seem to reproduce this, even with a metric tonne of other widgets.

darrenburns commented 3 weeks ago

I wonder if it's relating to the content inside the dropdown. Maybe each line is wrapping and so appears invisible. I'll keep my eyes peeled for clues 🕵️‍♂️

willmcgugan commented 3 weeks ago

I did notice that sometimes when the drop down is made visible, there is a frame where the contents are blank, before being filled in.

That puzzles me, because it should all happen in a single update. Seems plausible it is related to the content or wrapping...