Vuepic / vue-datepicker

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

Multi calendar with solo enabled jumps to different dates after first selection #812

Closed RiesvGeffen closed 5 months ago

RiesvGeffen commented 5 months ago

Describe the bug After selecting the first date (so range is enabeld) on the right calendar with multi-calendars it's solo property on true. The calendar on the right jumps to the connecting month of the left. It's the same issue as the last one I reported #649, that might help with finding the fix.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://stackblitz.com/edit/vuepic-vue-datepicker-duh3f6?file=package.json
  2. Open the datepicker
  3. For example, click on 2023 November 1

Expected behavior Calendar on the right should stay on 2023 November(, but it jumps to 2021 December). I would expect both sides to stay on the month and year what they where on.

Desktop & mobile:

Jasenkoo commented 5 months ago

This won't be altered as it is expected behavior, these offset dates should not represent the selected state if another month where the date is selected is visible.