SaturnTeam / saturn-datepicker

Angular Material Datepicker with range selection
MIT License
276 stars 110 forks source link

Can't use [value] to set calendar dates. #124

Closed Defmetalhead closed 4 years ago

Defmetalhead commented 4 years ago

public calendarDate = { begin: new Date(2020, 1, 1), end: new Date(2020, 1, 5) };

<input matInput (dateChange)="handleDateChange($event.value)" [min]="minDate" placeholder="Choose a date" [value]="calendarDate" [disabled]="activityEngineService.isLoadingStream.value" [satDatepicker]="datePicker" class="calendar-input">

I just want dates to be pre-selected when opening the calendar.

SaturnTeam commented 4 years ago

please double-check your code. Initial value seems correct