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:
parent
41a5d0ba5e
commit
44885d3801
1 changed files with 3 additions and 0 deletions
|
@ -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
|
this.adjustTimeSlotHeights(); // Adjust heights after dropping a task
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue