Skip to content

bug(Datepicker): no datepicker icon shown #32492

@nivekcode

Description

@nivekcode

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

Hey there, currently when I build a Angular 21 app with the latest material (21.0.2) and use the datepicker as shown in the material examples theres no icon displayed.

<mat-form-field appearance="outline" class="ef-field">
            <mat-label>Start date</mat-label>
            <input matInput [matDatepicker]="startPicker" />
            <mat-datepicker #startPicker></mat-datepicker>
 </mat-form-field>

Reproduction

  1. Check out this project: https://github.com/nivekcode/broken-datepicker
  2. npm i
  3. npm run start

Expected Behavior

Icon and datepicker should be shown

Actual Behavior

no icon and no datepicker are shown

Environment

  • Angular: 21.0.0
  • CDK/Material: 21.0.2
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions