Open
Description
Reproduction
https://stackblitz.com/edit/angular-9-material-starter-ctvwko
Steps to reproduce:
- Set dates on step one to be valid (for example: 20/07/2020 - 27/07/2020)
- Go to step two on mat-stepper then back to step one.
- Change dates to be the same (25/07/2020 - 25/07/2020)
- Go to step two on mat-stepper then back to step one.
- Change dates to be in range from first repro step and different than step 3. (for example 20/07/2020 - 23/07/2020).
- Error appear
{ "matDatepickerMin": { "min": "2020-07-24T22:00:00.000Z", "actual": "2020-07-22T22:00:00.000Z" } }
. It's min date from repro step 3.
Expected Behavior
Error shouldn't appear as date is in valid range.
Actual Behavior
Datepicker doesn't revalidate form control when step is changed.
Environment
- Angular: 9.1.2
- CDK/Material: 9.2.1
- Browser(s): All
- Operating System: Windows