mat-datepicker is still emitting the valueChanges event prior to the control being blurred #18640
Labels
area: material/datepicker
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Even with the form control configured with the "updateOn: 'blur'" option, the mat-datepicker is still sometimes firing the valueChanges event upon each keystroke, rather than waiting for the control to lose focus. This appears to have been partially fixed by #18063, but not completely.
Reproduction
See the following StackBlitz to reproduce this issue: https://stackblitz.com/edit/angular-hp9da4
Steps to reproduce:
Expected Behavior
Emissions of the valueChanges event are always deferred until the control loses focus, as the documentation for "updateOn: 'blur'" suggests.
Actual Behavior
While in certain invalid states, the control continues to emit events upon each keystroke. This behavior appears to be contingent upon the value of the form control being programmatically modified.
Environment
The text was updated successfully, but these errors were encountered: