This commit is contained in:
Janus C. H. Knudsen 2025-12-11 21:16:40 +01:00
parent 1a4c22d37f
commit 9e568fbd8e
4 changed files with 23 additions and 4 deletions

View file

@ -128,6 +128,8 @@ export class HeaderDrawerRenderer {
/**
* Handle drag end - finalize the item (it stays in header)
* Note: EventRenderer handles removing the original element from the grid
* via EVENT_DRAG_END with target === 'header'
*/
private handleDragEnd(): void {
if (!this.currentItem) return;
@ -135,10 +137,9 @@ export class HeaderDrawerRenderer {
// Remove dragging state
this.currentItem.classList.remove('dragging');
// Item stays - it's now permanent
// TODO: Emit event to persist allDay=true change
// Clear references but leave item in DOM
// Clear references
this.currentItem = null;
this.sourceElement = null;
}