Skip to content

Commit

Permalink
fix(VDatePicker): set correct max year (#18141)
Browse files Browse the repository at this point in the history
fixes #18112

Co-authored-by: John Leider <[email protected]>
  • Loading branch information
gitemad and johnleider authored Sep 19, 2023
1 parent cc0969c commit fce67bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/labs/VDatePicker/VDatePickerYears.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<VBtn>()
Expand Down

0 comments on commit fce67bf

Please sign in to comment.