From 56bf88f293b1f7ce458136371eb824e0b31b6155 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Mon, 16 Mar 2026 09:26:32 +0100 Subject: [PATCH] fix : prevent document delete button from submitting the TaskModal form The delete button in TaskDocumentList lacked type="button", causing it to act as a submit button inside the form, which triggered handleSubmit and closed the modal before the confirmation dialog could appear. Also added guards to prevent closing TaskModal while a sub-modal is open. Co-Authored-By: Claude Opus 4.6 --- frontend/components/task/TaskDocumentList.vue | 1 + frontend/components/task/TaskModal.vue | 3 +++ frontend/components/ui/ConfirmDeleteDocumentModal.vue | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/components/task/TaskDocumentList.vue b/frontend/components/task/TaskDocumentList.vue index 25b0e0e..2b352a1 100644 --- a/frontend/components/task/TaskDocumentList.vue +++ b/frontend/components/task/TaskDocumentList.vue @@ -34,6 +34,7 @@