Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

Commit 14baa05

Browse files
committed
fix: Remove -1 from maxMonth
1 parent 8be8bb7 commit 14baa05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Vue3DatePicker/components/MonthYearInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
const maxMonth = computed(() => {
239239
if (props.maxDate && maxYear.value) {
240240
if (maxYear.value < props.year) return -1;
241-
if (maxYear.value === props.year) return getMonth(new Date(props.maxDate)) - 1;
241+
if (maxYear.value === props.year) return getMonth(new Date(props.maxDate));
242242
}
243243
return null;
244244
});

0 commit comments

Comments
 (0)