angular / angular/components

feat(mat-datepicker): Use mat-datepicker-actions without losing the regular behavior

Open
#24,914 4 comments 29 reactions 0 assignees View on GitHub
area: material/datepicker feature P3
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

### Feature Description

As soon as any actions are set (in my case just a _Today_ button) the default functionality is los. Imho this should only be the case, if the `matDatepickerApply` directive is used, too.

### Use Case

Add a _Today_ button, keeping the default select behavior.

Contributor guide

Open the contributing guide

Research direction

Start at the mat-datepicker-actions entry point and reproduce the reported case with a Today button. Compare behavior with and without the matDatepickerApply directive; done means the regular select behavior remains unless that directive is used.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.