[🐛 BUG] on_action function is not valid after downloading in case of a multi-pages apllication #2450
Open
1 of 7 tasks
Labels
🖰 GUI
Related to GUI
💥Malfunction
Addresses an identified problem.
🟥 Priority: Critical
Must be addressed as soon as possible
🔒 Staff only
Can only be assigned to the Taipy R&D team
What went wrong? 🤔
This provided example https://github.com/Avaiga/taipy/blob/release/4.0/doc/gui/examples/controls/file_download_dynamic_temp_file.py works well in this simple case : clean_up function (on_action parameter of download function) is called and temporary file is deleted.
But in my case of a multi-pages application, on_action function is not properly called since it leads here https://github.com/Avaiga/taipy/blob/develop/taipy/gui/gui.py#1630 ( _warn(f"on_action(): '{action}' is not a valid function.") )
Expected Behavior
In any cases of application (espacially in multi-pages application with each page in separate module),
the on_action parameter of download function must allow to delete properly the temporary file required for dynamic file_download functionnalilty.
Additional Context
Acceptance Criteria
Code of Conduct
The text was updated successfully, but these errors were encountered: