Skip to content

bug(Datepicker): Cannot highlight specific dates with v13 #24383

Closed
@keith-aa

Description

@keith-aa

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Tried running the "Highlighting specific dates" example from https://material.angular.io/components/datepicker/overview on Stackblitz. It would not highlight. Also, tried downloading the example and updating to latest release. It still did not work.

Expected
highlighted

Actual
not-highlighted-as-expected

Reproduction

Steps to reproduce:

  1. Download angular-date-class-filter-13.zip
  2. Extract zip file.
  3. npm install
  4. ng serve --port 4000
  5. Open browser to port 4000
  6. Click calendar icon

Expected Behavior

Expected to see the 1st and 20th highlighted.
highlighted

Actual Behavior

Neither day is highlighted.
not-highlighted-as-expected

Environment

C:\Temp\examples\angular-date-class-filter-13>ng version

Angular CLI: 13.2.2
Node: 16.13.2
Package Manager: npm 8.1.2
OS: win32 x64

Angular: 13.2.2
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.1302.2
@angular-devkit/build-angular 13.2.2
@angular-devkit/core 13.2.2
@angular-devkit/schematics 13.2.2
@angular/cdk 13.2.1
@angular/material 13.2.1
@schematics/angular 13.2.2
rxjs 7.4.0
typescript 4.4.4

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/datepickerdocsThis issue is related to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions