Skip to content

Commit 4f7cc6a

Browse files
committed
fix(VCalendar): extend start of event on following day
fixes #22480
1 parent b47a4ce commit 4f7cc6a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/vuetify/src/components/VCalendar/composables/calendarWithIntervals.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,7 @@ export function useCalendarWithIntervals (props: CalendarWithIntervalsProps) {
245245
if (targetDate && typeof time === 'object' && 'day' in time) {
246246
const a = getDayIdentifier(time)
247247
const b = getDayIdentifier(targetDate)
248-
if (a > b) {
249-
minutes += (a - b) * gap
250-
}
248+
minutes += (a - b) * gap
251249
}
252250

253251
const min: number = firstMinute.value

0 commit comments

Comments
 (0)