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.
This commit is contained in:
Kumi 2024-07-31 08:59:25 +02:00
parent 41a5d0ba5e
commit 44885d3801
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -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
}