Updates navigation event data
Updates the navigation event to include the current date instead of the week start. Makes the target date optional when rendering an all-day event.
This commit is contained in:
parent
46b8bf9fb5
commit
5c67825e19
2 changed files with 2 additions and 2 deletions
|
|
@ -288,7 +288,7 @@ export class NavigationManager {
|
||||||
// Emit period change event for ScrollManager
|
// Emit period change event for ScrollManager
|
||||||
this.eventBus.emit(CoreEvents.NAVIGATION_COMPLETED, {
|
this.eventBus.emit(CoreEvents.NAVIGATION_COMPLETED, {
|
||||||
direction,
|
direction,
|
||||||
weekStart: this.currentWeek
|
currentDate: this.currentWeek
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ export class AllDayEventRenderer {
|
||||||
/**
|
/**
|
||||||
* Render an all-day event using factory pattern
|
* Render an all-day event using factory pattern
|
||||||
*/
|
*/
|
||||||
public renderAllDayEvent(event: CalendarEvent, targetDate: string): HTMLElement | null {
|
public renderAllDayEvent(event: CalendarEvent, targetDate?: string): HTMLElement | null {
|
||||||
const container = this.getContainer();
|
const container = this.getContainer();
|
||||||
if (!container) return null;
|
if (!container) return null;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue