Add unsaved changes warning when closing task modal🔊
Description:
If a user edits a task (title, description, etc.) and closes the modal without saving, all changes are silently lost — no warning at all.
Tasks:
Track if form fields have been modified (dirty state) in the task modal
If dirty and user tries to close (X button or clicking outside), show a confirm dialog: "Discard unsaved changes?"
Proceed to close only if confirmed
Add unsaved changes warning when closing task modal🔊
Description:
If a user edits a task (title, description, etc.) and closes the modal without saving, all changes are silently lost — no warning at all.
Tasks:
Track if form fields have been modified (dirty state) in the task modal
If dirty and user tries to close (X button or clicking outside), show a confirm dialog: "Discard unsaved changes?"
Proceed to close only if confirmed