Skip to content

Month navigation jumps back to selected date #1192

@alexpopovme

Description

@alexpopovme

If you open the calendar and press the "next month" arrow several times (e.g. until you reach March), the calendar shows the new month and then jumps back to the month of the selected date.

This happens only under certain layout conditions —
specifically when the datepicker menu is positioned close to the bottom edge of the window.

Steps to reproduce:

  1. Open the datepicker (a date is preselected)
  2. Click the "next month" arrow several times
  3. When you reach March, the calendar resets back to the originally selected month

Reproduction link:
https://stackblitz.com/edit/vuepic-vue-datepicker-c8eynbsz?file=src%2Fcomponents%2FPlayground.vue

Expected:
The calendar should stay on the navigated month.

Actual:
The view resets to the selected date’s month.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions