Skip to content

Commit 421a6f6

Browse files
authored
fix(VDatePicker): improved date comparison with min constraint (#21398)
fixes #21380
1 parent f43acea commit 421a6f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vuetify/src/composables/calendar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export function useCalendar (props: CalendarProps) {
215215

216216
const date = adapter.date(value)
217217

218-
if (props.min && adapter.isAfter(adapter.date(props.min), date)) return true
218+
if (props.min && adapter.isBefore(adapter.endOfDay(date), adapter.date(props.min))) return true
219219
if (props.max && adapter.isAfter(date, adapter.date(props.max))) return true
220220

221221
if (Array.isArray(props.allowedDates) && props.allowedDates.length > 0) {

0 commit comments

Comments
 (0)