-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Closed
Copy link
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/datepicker
Description
Reproduction
Steps to reproduce:
- Have a mat-calendar like:
<mat-calendar
[minDate]="today"
[maxDate]="serviceMaxDate"
[dateFilter]="filterDates"
[dateClass]="classDates"
[selected]="selectedDate"
(selectedChange)="selectedDateChanges($event)">
</mat-calendar>
- Select -> years (on top) -> select a year -> then dateFilter is called (for all year dates) but the dateClass is not. So I don't get css classes on months cells.
Expected Behavior
I should be able to put css classes on month cells just like the days cells.
Actual Behavior
Only while in date view the dateClass callback is called for all month days.
Environment
- Angular: 9
- CDK/Material: 9.2.4,
- Browser(s): Chrome 83+
- Operating System: Windows 10
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/datepicker