Skip to content

viewDate is overriden by minDate #2877

@LePtitJoNadeau

Description

@LePtitJoNadeau

Prerequisites

Describe the issue

viewDate is overriden by minDate on navigation

(same thing to maxDate)

Step to reproduce bug:

  1. Pickup tomorrow date
  2. Open datetimepicker2
  3. Click right arrow to go to next month
  4. Try to left click to left arrow now. It's not available anymore.
    Expected behavior: We should be able to go to previous month since the minDate picked is tommorrow.

StackBlitz fork

https://tempus-dominus-v6-simple-setup-mldyhy.stackblitz.io/
Edit mode:
https://stackblitz.com/edit/tempus-dominus-v6-simple-setup-mldyhy?file=index.js

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Firefox

What version of are you using? You can find this information from the sample StackBlitz.

6.7.19

What your browser's locale? You can find this information from the sample StackBlitz.

fr-CA

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions