Skip to content

Commit 57a17e0

Browse files
authored
Merge pull request #929 from Tsuyoshi84/bugfix/fix_auto_range_multi_calendars
fix: Wrong month & year assignment for auto-range multi calendars
2 parents d92d319 + 2451614 commit 57a17e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VueDatePicker/components/DatePicker/date-picker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ export const useDatePicker = (
468468
if (defaultedMultiCalendars.value.count > 0) {
469469
for (let i = 1; i < defaultedMultiCalendars.value.count; i++) {
470470
const next = getNextMonthYear(
471-
set(getDate(date), { year: month.value(i - 1), month: year.value(i - 1) }),
471+
set(getDate(date), { year: year.value(i - 1), month: month.value(i - 1) }),
472472
);
473473
setCalendarMonthYear(i, next.month, next.year);
474474
}

0 commit comments

Comments
 (0)