-
Notifications
You must be signed in to change notification settings - Fork 815
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
Clicking off the Select dropdown causes a crash in update_focus
#4648
Comments
Click on Select control, navigate with arrows to select an option, press Enter, crash. |
update_focus
Could you provide a minimal app to reproduce this? |
I have a hunch of why this is happening - the dialog goes through the recomposition via |
That would make sense. If the widget is recomposed while it is being used, it would result in this error. How are you doing the recompose? Are you calling it explicitly, or via a reactive? |
I was able to workaround this issue by moving recomposing the Widget containing the Select into a worker from the |
Directly but now in the worker rather than in the |
Thing is, in the repro case I tried to craft it caused no issues, so my guess is the timings would be something that causes the problem. |
I'm going to close this as this bug went away as I moved recompose into a worker. |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
This just appeared in 0.67.1 out of the blue when clicking off a Select.
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
The text was updated successfully, but these errors were encountered: