Material: max date with datepicker

Created on 1 Sep 2016  路  2Comments  路  Source: angular/material

Actual Behavior:

  • What is the issue? Datepicker with only md-max-date does not work properly.
  • What is the expected behavior? Clicking on the month headers does not give the correct values. Also we can navigate upto year 1983 only - we cannot go beyond that

CodePen (or steps to reproduce the issue): *

  • CodePen Demo which shows your issue: http://codepen.io/mouhsine/pen/GjRRmL
  • Details: Click on the month headers - max date not working + can navigate to years upto 1983(can not go beyond that)

Angular Versions: *

  • Angular Version: 1.5.7
  • Angular Material Version: 1.1.0

Additional Information:

  • Browser Type: Chrome
  • Browser Version: 52.0.2743.116 m
  • OS: windows 7
investigation bug

Most helpful comment

capture

All 2 comments

capture

The approach to dealing with the min/max dates was changed recently (https://github.com/angular/material/pull/9309) and it seems like it fixed this issue as well. Here's a forked codepen that uses the code from master. The fix should land soon with 1.1.1.

Was this page helpful?
0 / 5 - 0 ratings