-
Notifications
You must be signed in to change notification settings - Fork 545
Open
Labels
bug: regressionA feature that worked correctly doesn't anymoreA feature that worked correctly doesn't anymore
Milestone
Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the bug
Hello,
in flet==0.70.0.dev5089 AlertDialog on_dismiss handler is never called.
Code sample
Test AlertDialog.on_dismiss handler
import flet as ft
def main(page: ft.Page):
def on_dismiss():
print('DISMISSED')
def open_dialog(e):
page.show_dialog(ft.AlertDialog(content=ft.Text('test dialog'), on_dismiss=on_dismiss))
page.floating_action_button = ft.FloatingActionButton(
icon=ft.Icons.ADD, on_click=open_dialog
)
page.add(
ft.SafeArea(
expand=True,
content=ft.Text('test'),
)
)
ft.run(main)
To reproduce
run program, click FAB, close dialog that appeared, on_dismiss will not be called
Expected behavior
on_dismiss handler should be called and "DISMISSED" printed
Screenshots / Videos
Captures
[Upload media here]
Operating System
Windows
Operating system details
Windows 11
Flet version
0.70.0.dev5089
Regression
Yes, it used to work in a previous Flet version (please specify the version in additional details)
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response
Metadata
Metadata
Assignees
Labels
bug: regressionA feature that worked correctly doesn't anymoreA feature that worked correctly doesn't anymore