angular / material

Material design for AngularJS
https://material.angularjs.org/
MIT License
16.54k stars 3.39k forks source link

datepicker: min-date after max-date causes calendar to have strange behavior #11335

Open wilker7ribeiro opened 6 years ago

wilker7ribeiro commented 6 years ago

Bug, enhancement request, or proposal:

BUG

CodePen and steps to reproduce the issue:

https://codepen.io/anon/pen/dKmXem

Detailed Reproduction Steps:

  1. Create a md-datepicker with md-min-date after md-max-date
  2. Open calendar

What is the expected behavior?

All dates should be disabled

What is the current behavior?

All dates are hidden.

Which versions of AngularJS, Material, OS, and browsers are affected?

image

wilker7ribeiro commented 6 years ago

Same behavior as: https://github.com/angular/material/issues/11138