-
Notifications
You must be signed in to change notification settings - Fork 843
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
A screen that is pushed via a command palette callback does not receive the push_screen callback #5512
Comments
This sounds similar to another recent issue, where these callbacks stopped working after Textual v0.74.0: For what it's worth, I found that reverting 5a99dee so the app calls the selected command seems to work, although I doubt this is the proper fix. |
I think that is actually the fix! |
Merged
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Thank you @willmcgugan ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you checked closed issues? Yes
Have you checked against the most recent version of Textual? Yes
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.
A screen pushed inside a
CommandPalette
SystemCommand
callback does not receive the dismiss result.Here is a slightly tweaked version of the QuitScreen example where it also calls the same function from the command palette. You can see that the key binding still quits the app as normal. If you do it from the command palette it does not quit. Does not matter if it is Modal or not.
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
The text was updated successfully, but these errors were encountered: