From fce67bf6a7291907829770308cc6f90b151e53d2 Mon Sep 17 00:00:00 2001 From: gitemad <61329625+gitemad@users.noreply.github.com> Date: Tue, 19 Sep 2023 19:33:35 +0330 Subject: [PATCH] fix(VDatePicker): set correct max year (#18141) fixes #18112 Co-authored-by: John Leider --- packages/vuetify/src/labs/VDatePicker/VDatePickerYears.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vuetify/src/labs/VDatePicker/VDatePickerYears.tsx b/packages/vuetify/src/labs/VDatePicker/VDatePickerYears.tsx index 32410a0dec4..5b83796a1ab 100644 --- a/packages/vuetify/src/labs/VDatePicker/VDatePickerYears.tsx +++ b/packages/vuetify/src/labs/VDatePicker/VDatePickerYears.tsx @@ -36,7 +36,7 @@ export const VDatePickerYears = genericComponent()({ const min = props.min ? adapter.date(props.min).getFullYear() : displayYear.value - 100 const max = props.max ? adapter.date(props.max).getFullYear() : displayYear.value + 50 - return createRange(max - min, min) + return createRange(max - min + 1, min) }) const yearRef = ref()