diff --git a/projects/datetime-picker/src/lib/calendar.html b/projects/datetime-picker/src/lib/calendar.html index 9bb28eb2..520ee43a 100644 --- a/projects/datetime-picker/src/lib/calendar.html +++ b/projects/datetime-picker/src/lib/calendar.html @@ -4,7 +4,7 @@ @switch (currentView()) { @case ('month') { implements AfterContentInit, AfterViewChecked, On * The current active date. This determines which time period is shown and which date is * highlighted when using keyboard navigation. */ - get activeDate(): D | null { - return this._clampedActiveDate; + get activeDate(): D { + return this._clampedActiveDate ?? this._dateAdapter.today(); } set activeDate(value: D) { this._clampedActiveDate = this._dateAdapter.clampDate(value, this.minDate, this.maxDate);