From 44885d3801c6b1f3d41562d7b49b68898eac8c6c Mon Sep 17 00:00:00 2001 From: Kumi Date: Wed, 31 Jul 2024 08:59:25 +0200 Subject: [PATCH] fix: synchronize task column update after drag-and-drop Ensure the task's column in the tasks map is correctly updated after drag-and-drop to maintain consistent state. This prevents potential display inconsistencies and logical errors when tasks are moved between columns. --- kanblendar.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kanblendar.js b/kanblendar.js index d207c6f..a633fdc 100644 --- a/kanblendar.js +++ b/kanblendar.js @@ -264,6 +264,9 @@ class Kanblendar { } } + // Update the task's column in the tasks map + this.tasks.get(task.id).column = dropTarget.id.replace('-tasks', ''); + this.adjustTimeSlotHeights(); // Adjust heights after dropping a task }