@angular/material 13.3.6 → 13.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2748,9 +2748,8 @@ class MatDatepickerInputBase {
2748
2748
  }
2749
2749
  /** Formats a value and sets it on the input element. */
2750
2750
  _formatValue(value) {
2751
- this._elementRef.nativeElement.value = value
2752
- ? this._dateAdapter.format(value, this._dateFormats.display.dateInput)
2753
- : '';
2751
+ this._elementRef.nativeElement.value =
2752
+ value != null ? this._dateAdapter.format(value, this._dateFormats.display.dateInput) : '';
2754
2753
  }
2755
2754
  /** Assigns a value to the model. */
2756
2755
  _assignValue(value) {