Skip to content

minDate and maxDate mixed up #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fabienbranchel opened this issue Mar 3, 2017 · 3 comments
Closed

minDate and maxDate mixed up #96

fabienbranchel opened this issue Mar 3, 2017 · 3 comments

Comments

@fabienbranchel
Copy link

When we use two datetimepickers on same page, minDate and maxDate are mixed up.
You can test it on your demo, in the DateRange Example : https://logbon72.github.io/angular-material-datetimepicker/

  1. Select a start date.
  2. Reopen the start date : all is ok
  3. Open the end date : we can't select date before start date, all is ok
  4. Select the end date.
  5. Reopen the start date : we can't select a date before than start date we previously selected
  6. Reopen the end date : we can't select a date after than end date we previously selected
hexadecy referenced this issue in beenote/angular-material-datetimepicker Mar 3, 2017
@hexadecy
Copy link

hexadecy commented Mar 3, 2017

As a workaround you have to set undefined attribute min-date or max-date.
min-date="null"
Not sure it's the best solution...

hexadecy referenced this issue in beenote/angular-material-datetimepicker Mar 5, 2017
@hexadecy
Copy link

hexadecy commented Mar 5, 2017

@fabienbranchel can you test in my fork?

@fabienbranchel
Copy link
Author

@hexadecy thank you, seems to work ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants