[#246] removed navigation on month selection (#330)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2025-11-19 15:12:21 +01:00
committed by GitHub
parent 081a81c31e
commit 618f071ba5
2 changed files with 8 additions and 15 deletions
+2 -3
View File
@@ -645,7 +645,6 @@ export default function CalendarApp({
}}
datesSet={(arg) => {
setCurrentView(arg.view.type);
// Get the current date from calendar API to ensure consistency
const calendarCurrentDate =
calendarRef.current?.getDate() || new Date(arg.start);
@@ -656,8 +655,8 @@ export default function CalendarApp({
setSelectedDate(new Date(middle));
setSelectedMiniDate(calendarCurrentDate);
} else {
setSelectedDate(new Date(arg.start));
setSelectedMiniDate(new Date(arg.start));
setSelectedDate(calendarCurrentDate);
setSelectedMiniDate(calendarCurrentDate);
}
// Always use the calendar's current date for consistency