Description
Reproduction
FormControl updateOn blur mode not working properly only for datepicker control.
Steps to reproduce:
1. Use following stackblitz links to reproduce issue. In that, the form control is SET as to update only on blur. Also I added alter message on valueChange event.
2. Use both link and change date by removing from input box using 'Backspace/Delete' keyword.
3. You can see in version @angular/material 7.2.2 it respecting blur event and will not show alert of change event.
4. For @angular/material 7.3.1, you will see the alert message after the removing or modifying dates using 'Backspace/Delete' keyword.
5. As focus is not change from control so it should not emit the change event because it set as to change on blur.
Here is example with @angular/material 7.3.1 version in which have issue.
https://stackblitz.com/edit/datepicker-issue-with-angularmaterial-731
Earlier version (@angular/material 7.2.2), the blur event was working fine.
https://stackblitz.com/edit/datepicker-issue-with-angularmaterial-722
This issue exist in @angular/material 8.0.2 as well.
Expected Behavior
formControl blur event should work properly and it emit change event only if we focus out from control.
Actual Behavior
Form Control datepicker triggering the change event while modifying the date on control even it set as updateOn blur.
Environment
- Angular: 8.0.1
- CDK/Material:8.0.1 and latest
- Browser(s): chrome
- Operating System (e.g. Windows, macOS, Ubuntu): windows 10