Vuepic / vue-datepicker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
1.38k stars 137 forks source link

fix: Wrong month & year assignment for auto-range multi calendars #929

Closed Tsuyoshi84 closed 1 week ago

Tsuyoshi84 commented 1 week ago

This PR solves #909, in which the second calendar appears with the wrong year and month when simultaneously using auto-range and multi-calendar features.

Upon investigation, I found that the year and month values were mistakenly assigned interchangeably in the handleNextCalendarAutoRange function, leading to the bug.

After fixing it, I confirmed that the second calendar showed the correct year and month.