fix: enhance calendar event creation with double-click support and modal date handling

This commit is contained in:
Linus Rath
2026-03-18 18:13:33 +01:00
parent ef562bcaad
commit 6457b27125
3 changed files with 15 additions and 6 deletions
+4 -3
View File
@@ -239,9 +239,10 @@ export function useTimeGridInteractions({
clearTimeout(clickTimerRef.current);
clickTimerRef.current = null;
}
const key = format(day, "yyyy-MM-dd");
setQuickCreate({ dayKey: key, day, hour, top: hour * hourHeight });
}, [hourHeight]);
const d = new Date(day);
d.setHours(hour, 0, 0, 0);
onCreateRange(d);
}, [onCreateRange]);
const handleQuickCreateSubmit = useCallback(async (title: string) => {
if (!quickCreate) return;