You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be a symptom of something more general, but I'm recording it here for further investigation or clarification after the question was asked on Discord.
Short version: if, from within a widget, a message is posted from a callback initiated from the dismissal of a modal screen, the message seems to stop bubbling at the screen. On the other hand a message posted "directly" on the widget bubbles up to the application.
To illustrate, the following app can help show it off:
When run, press the Just send the message button and the message will appear in the log. On the other hand, if you press the From the modal screen button and then press the button on the resulting modal screen, no message gets logged.
This can also be seen in the textual console, where the in the latter case the only even logs are these:
TestWidget.TestMessage(came_from='From the modal screen') >>> TestWidget() method=None
TestWidget.TestMessage(came_from='From the modal screen') >>> Screen(id='_default') method=None
whereas when sent "directly":
TestWidget.TestMessage(came_from='Directly from a post_message') >>> TestWidget() method=None
TestWidget.TestMessage(came_from='Directly from a post_message') >>> Screen(id='_default') method=None
TestWidget.TestMessage(came_from='Directly from a post_message') >>> CallbackBubbleIssueApp(title='CallbackBubbleIssueApp', classes={'-dark-mode'}) method=<CallbackBubbleIssueApp.on_test_widget_test_message>
This feels like a bug, but I don't want to label it as such until it's clearer what's going on here. Even the subject for the issue is up in the air as this could just be a very specific instance of a more general thing.
The text was updated successfully, but these errors were encountered:
This might be a symptom of something more general, but I'm recording it here for further investigation or clarification after the question was asked on Discord.
Short version: if, from within a widget, a message is posted from a callback initiated from the dismissal of a modal screen, the message seems to stop bubbling at the screen. On the other hand a message posted "directly" on the widget bubbles up to the application.
To illustrate, the following app can help show it off:
When run, press the Just send the message button and the message will appear in the log. On the other hand, if you press the From the modal screen button and then press the button on the resulting modal screen, no message gets logged.
This can also be seen in the textual console, where the in the latter case the only even logs are these:
whereas when sent "directly":
This feels like a bug, but I don't want to label it as such until it's clearer what's going on here. Even the subject for the issue is up in the air as this could just be a very specific instance of a more general thing.
The text was updated successfully, but these errors were encountered: