-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Datepicker min attribute - dates before min dates are still available. Validation works #5065
Comments
Plunker? Seems to be working fine here |
Hello, I don't think you are using same repo for angular material https://github.com/angular/material2-builds.git |
Sorry, you're right I was using the latest beta release.
Therefore it looks like the regression was introduced via #4370 cc @mmalerba |
@vmachacek there are several other datepicker bugs due to that PR. I posted them as a comment #4370 (comment) and reposting here:
|
@willshowell do you have a reproduction? When I try this in our dev environment it works fine. I also don't see how adding an extra change detection pass would cause any behavior change. |
@jelbourn Weird, I was running it locally too and still seeing this issue. Here's a plunker using the latest material2-build |
I see the issue now. The initial round of change detection makes Angular think that the component doesn't need another when the |
Using the following simple code max date is working fine but I could not achieve the min date functionality: Ts Code: |
Using typescript and Angular Material Datepicker is validation check date of birth in 18 years from current year. Please tell me anyone, how to develop this |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
When I set 'min' on a datepicker I want to see disabled all dates before that
What is the current behavior?
The dates which are in past from min date are not disabled
What are the steps to reproduce?
Set the min date for datepicker, and previous dates are still available from UI, validation will still work.
What is the use-case or motivation for changing an existing behavior?
The min attribute is useless for UI, the validation still works
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
I'm using
https://github.com/angular/material2-builds.git
repoIs there anything else we should know?
I was flowing the #4725 and used the material2-builds repository, but another problem occurred. This issue.
The text was updated successfully, but these errors were encountered: