question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Calendar shows wrong month when minDate and preventMinMaxNavigation are set

See original GitHub issue

Describe the bug When minDate is a date next month and preventMinMaxNavigation is set to true, the calendar shows the current month with all the days disabled.

To Reproduce

  1. Create Datepicker with :minDate a date next month and preventMinMaxNavigation
  2. Notice that the calendar shows the current month
  3. When clicking next month, notice you can’t navigate back to the current month any more,

https://stackblitz.com/edit/vuepic-vue-datepicker-8y1ew1?file=src/components/Playground.vue

Expected behavior The calendar should default to showing the month of the minDate.

Screenshots Screenshot 2022-09-27 at 17 12 35

Desktop & mobile (please complete the following information):

  • Google Chrome 105.0.5195.125 (Official Build) (x86_64)
  • v3.4.8

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Jasenkoocommented, Sep 29, 2022

You can use the startdate prop.

0reactions
simonda86commented, Sep 30, 2022

Thanks so much, that has resolved my issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android CalendarView showing wrong month on scroll when ...
I have added setMinDate(Dec 1, 2015) and setMaxDate(current month last day) for calendarview, when moving from min date to max date, it is...
Read more >
Calendar show wrong when set minDate · Issue #1728 - GitHub
In the first picker, navigate to the next month and select a date; Open the second calendar. In v4.51, the calendar shows the...
Read more >
Calendar events displaying in wrong month | WordPress.org
For some reason my calendar events are shifting a month. ... Have you verified that your site is set to the correct time...
Read more >
Windows10 Calendar shows wrong day error
When you click on the lower right time/date field it brings up a graphic showing the current full Calendar month. This graphic is...
Read more >
Calendar - Calendar UI widget documentation - Webix
Dates can be set after calendar initialization with the help of the following ... the modes in which Calendar will display either only...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found