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:
parent
496be2f7ce
commit
5cdcd12e0a
3 changed files with 20 additions and 48 deletions
|
|
@ -331,33 +331,6 @@ export abstract class BaseEventRenderer implements EventRendererStrategy {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle event click (when drag threshold not reached)
|
||||
*/
|
||||
public handleEventClick(eventId: string, originalElement: HTMLElement): void {
|
||||
console.log('handleEventClick:', eventId);
|
||||
|
||||
// Clean up any drag artifacts from failed drag attempt
|
||||
if (this.draggedClone) {
|
||||
this.draggedClone.classList.remove('dragging');
|
||||
this.draggedClone.remove();
|
||||
this.draggedClone = null;
|
||||
}
|
||||
|
||||
// Restore original element styling if it was modified
|
||||
if (this.originalEvent) {
|
||||
this.originalEvent.style.opacity = '';
|
||||
this.originalEvent.style.userSelect = '';
|
||||
this.originalEvent = null;
|
||||
}
|
||||
|
||||
// Emit a clean click event for other components to handle
|
||||
eventBus.emit('event:clicked', {
|
||||
eventId: eventId,
|
||||
element: originalElement
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle navigation completed event
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue