components icon indicating copy to clipboard operation
components copied to clipboard

Datepicker minDate - error is raised when date is exactly min date

Open mihaSoro opened this issue 9 years ago • 4 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When minDate is set for the datePicker, a mdDatepickerMin error should be raised only if the date is earlier than the minDate.

What is the current behavior?

For the moment, when setting minDate, the date for exactly min date is NOT unselectable, which means you can select it, but it nevertheless raises an error. I think it should be either unselectable and raise an error or selectable and not raise the error.

What are the steps to reproduce?

Set up a minDate restiriction for the datepicker and try to select the exact min date, and check the fact that it raises an error while it is still selectable.

Providing a Plunker (or similar) is the best way to get the team to see your issue. Plunker template: https://goo.gl/DlHd6U

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

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

Angular 4, Material 2

Is there anything else we should know?

mihaSoro avatar May 22 '17 19:05 mihaSoro

I believe #4649 will fix that

willshowell avatar May 22 '17 23:05 willshowell

Fixed in #4649

BaimosTechnologies avatar May 23 '17 07:05 BaimosTechnologies

Great! This was fast!

mihaSoro avatar May 23 '17 07:05 mihaSoro

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.