Skip to content

MdCalendar minDate & maxDate are not responsive #7202

@BHaubert

Description

@BHaubert

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Updating the minDate or maxDate while the month view is active should refresh the component to disallow selection.

What is the current behavior?

The month view does not get updated until after the view has been switched to year then back to month

What are the steps to reproduce?

Create a component with two MdCalendar elements - from and to. Wire the minDate of to to the value of from and the maxDate of from to the value of to. Click a date on from, notice that the to calendar still allows date selection less than from. Now change the to calendar's view to Year then back to Month, now the calendar prevents selection of a date less than from.

http://plnkr.co/edit/uVXQ4FH4eduFBu9uTd1k?p=preview

What is the use-case or motivation for changing an existing behavior?

We are creating a date range component with two MdCalendars

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Material Beta 10

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions