angular / angular/components

bug(matInput): input with type datetime-local doesn't show a calendar pop-up

Open
#26,130 6 comments 4 reactions 0 assignees View on GitHub
P4
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

### Is this a regression?

- [X] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

14

### Description

An input with type `datetime-local` doesn't show the calendar pop-up in Angular Material 15. This is a regression.

Angular Material 15:
image

Angular Material 14:
image

### Reproduction

v15: https://stackblitz.com/edit/datetime-local-angular-15
v14: https://stackblitz.com/edit/datetime-local-angular-14

### Expected Behavior

A calendar icon and pop-up should be available just like in v14

### Actual Behavior

The calendar icon is missing and there is no way to open the calendar pop-up

### Environment

- Angular: 15.0.1
- CDK/Material: 15.0.0
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS

Contributor guide

Open the contributing guide

Research direction

Run the linked Angular 15 and Angular 14 StackBlitz reproductions in Chrome and compare the datetime-local input behavior. Trace the Angular Material input handling responsible for the calendar icon and pop-up. Done means Angular Material 15 restores the expected calendar affordance and pop-up for datetime-local inputs without regressing other input types.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.