diff --git a/packages/vuetify/src/components/VDatePicker/VDatePicker.tsx b/packages/vuetify/src/components/VDatePicker/VDatePicker.tsx index 55c2e0c5b72..0e6e6d98487 100644 --- a/packages/vuetify/src/components/VDatePicker/VDatePicker.tsx +++ b/packages/vuetify/src/components/VDatePicker/VDatePicker.tsx @@ -230,8 +230,13 @@ export const VDatePicker = genericComponent { - const before = adapter.date(wrapInArray(oldVal)[oldVal.length - 1]) - const after = adapter.date(wrapInArray(val)[val.length - 1]) + const arrBefore = wrapInArray(oldVal) + const arrAfter = wrapInArray(val) + + if (!arrAfter.length) return + + const before = adapter.date(arrBefore[arrBefore.length - 1]) + const after = adapter.date(arrAfter[arrAfter.length - 1]) const newMonth = adapter.getMonth(after) const newYear = adapter.getYear(after)