Updates all-day event overflow indicator

Ensures that the all-day event overflow indicator updates
correctly when the number of events changes, instead of
creating duplicate indicators.
Removes unused event click handling logic.
This commit is contained in:
Janus C. H. Knudsen 2025-10-02 17:30:48 +02:00
parent 496be2f7ce
commit 5cdcd12e0a
3 changed files with 20 additions and 48 deletions

View file

@ -197,16 +197,6 @@ export class EventRenderingService {
}
});
// Handle click (when drag threshold not reached)
this.eventBus.on('event:click', (event: Event) => {
const { draggedElement } = (event as CustomEvent).detail;
// Use draggedElement directly - no need for DOM query
if (draggedElement && this.strategy.handleEventClick) {
const eventId = draggedElement.dataset.eventId || '';
this.strategy.handleEventClick(eventId, draggedElement); //TODO: fix this redundant parameters
}
});
// Handle column change
this.eventBus.on('drag:column-change', (event: Event) => {
let columnChangeEvent = (event as CustomEvent<DragColumnChangeEventPayload>).detail;