We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50d6039 commit ab761d9Copy full SHA for ab761d9
1 file changed
resources/js/packages/ui/src/FullCalendar/useCalendarEvents.ts
@@ -265,9 +265,9 @@ export function useCalendarEvents(params: {
265
'seconds'
266
);
267
} else {
268
- durationSeconds = params.currentTime.value.diff(
269
- getDayJsInstance()(entry.start),
270
- 'seconds'
+ durationSeconds = Math.max(
+ 0,
+ params.currentTime.value.diff(getDayJsInstance()(entry.start), 'seconds')
271
272
}
273
0 commit comments