diff --git a/backend/templates/tasks.templ b/backend/templates/tasks.templ index 5297a10..158ad5e 100644 --- a/backend/templates/tasks.templ +++ b/backend/templates/tasks.templ @@ -51,7 +51,7 @@ templ KanbanBoard(tabloID uuid.UUID, csrfToken string, tasks []sqlc.Task) { group: "kanban", animation: 150, handle: ".task-drag-handle", - draggable: ".task-card", + draggable: ".task-card-zone", ghostClass: "bg-slate-100", chosenClass: "opacity-50", onEnd: function() { @@ -67,7 +67,6 @@ templ KanbanBoard(tabloID uuid.UUID, csrfToken string, tasks []sqlc.Task) { form.appendChild(colInp); }); }); - form.dispatchEvent(new Event("submit", { bubbles: true })); htmx.trigger(form, "submit"); } });