-
Notifications
You must be signed in to change notification settings - Fork 839
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
Cannot return focus to ListView from Select #5416
Comments
The Select will switch focus from the drop down back to the current value display, after the Change message is sent. So it undoes your change of focus. You could work around this, by focusing with the following: self.call_after_refresh(self.app.query_one(MyListView).focus) |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Thanks! For anyone else encountering this, I had worked around this by setting
Setting this makes the Select work as intended. |
Have you checked closed issues? https://github.com/Textualize/textual/issues?q=is%3Aissue+is%3Aclosed
Yes.
Have you checked against the most recent version of Textual? https://pypi.org/search/?q=textual
Yes.
Issue
Please give a brief but clear explanation of the issue. If you can, include a complete working example that demonstrates the bug. Check it can run without modifications.
After
focus
ing on a Select, I cannot programmatically return focus to a ListView and/or ListItem.What happens:
Expected:
The text was updated successfully, but these errors were encountered: