Skip to content

Support month / year only selection in datepicker #14202

Closed
@mcailleaux

Description

@mcailleaux

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When you configure datepicker with only month and year, the click on calendar header must switch between month and years picker

What is the current behavior?

When you configure datepicker with only month and year, the click on calendar header switch on days picker

What are the steps to reproduce?

On the showroom : https://material.angular.io/components/datepicker/overview
go to the month picker, open calendar and click on year in the header

What is the use-case or motivation for changing an existing behavior?

To have a real month picker

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

6+, 7+

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/datepickerfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions