mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
We now enable and disable save button when changing inputs for custom time limit settings in change_save_button_state function only which shows or hide the save-discard widget instead of handling them in "change" event handlers. This fixes the bug of save button flashing to its enabled state from disabled state before hiding after clicking on "Discard" as now button is re-enabled only after save-discard widget is hidden and it is disabled if required before being shown. Note that there is still a bug for message edit and delete limit settings where the save button flashes to enabled state when setting is changed to the original value instead of clicking on "Discard". This bug is not present for email notification batching setting in a follow-up PR. This commit also renames update_save_button_state function to enable_or_disable_save_button to avoid confusion with change_save_button_state function.
2.6 KiB
2.6 KiB