saturn-datepicker icon indicating copy to clipboard operation
saturn-datepicker copied to clipboard

_matCalendarBody.selectedValue is not updated when selected changed when using <sat-calendar [rangeMode]="false">

Open joeriddles opened this issue 5 years ago • 1 comments

When using the <sat-calendar> by itself with [rangeMode]="false", clicking on dates does not update the selectedValue UI.

Current work around is using:

@ViewChild(SatCalendar, {static: false}) private satCalendar: SatCalendar<Date>;
...
selectedChanged(event: Date): void {
    this.satCalendar.monthView._matCalendarBody.selectedValue = event.getDate();
}

joeriddles avatar Jan 21 '20 19:01 joeriddles

@joeriddles I think you can easily find a reason for it in my code. Please try and make a pull request

SaturnTeam avatar Feb 10 '20 18:02 SaturnTeam