Reproduction
StackBlitz: https://stackblitz.com/edit/angular-qpcqzz?embed=1&file=src/app/date-range-picker-forms-example.html
Steps to reproduce:
- Bind [(ngModel)] to matStartDate & matEndDate in mat-date-range-input
- Inspect ng-touched, ng-dirty and ng-pristine css classes of matStartDate & matEndDate inputs
Expected Behavior
Controls behind matStartDate & matEndDate must be pristine: true, dirty: false, touched: false at the beginning if
no one interacted with them
Actual Behavior
They are dirty, touched and not pristine
Environment
- Angular: 10.0.7
- CDK/Material: 10.1.2
- Browser(s): Any
- Operating System (e.g. Windows, macOS, Ubuntu): Any
Reproduction
StackBlitz: https://stackblitz.com/edit/angular-qpcqzz?embed=1&file=src/app/date-range-picker-forms-example.html
Steps to reproduce:
Expected Behavior
Controls behind matStartDate & matEndDate must be pristine: true, dirty: false, touched: false at the beginning if
no one interacted with them
Actual Behavior
They are dirty, touched and not pristine
Environment