Skip to content

Datepicker switch between month/year views is jarring #5426

@alxhub

Description

@alxhub

Bug, feature request, or proposal:

Bug

What is the current behavior?

With the datepicker open on https://material.angular.io/components/datepicker/examples, clicking the "Month Year" handle at the top left of the overlay causes the overlay to switch into a year-only view that allows selection of the current month.

In this new view, the datepicker overlay changes size, and becomes a lot smaller. This would be okay, except it resizes itself from the bottom, staying attached to the picker control as overlays usually do. This causes the click handle to toggle between these modes to move down on the screen, and suddenly my mouse is no longer over the overlay.

This feels very jarring in terms of user interaction, when I click the handle to "collapse" the datepicker, I expect it to shrink from the bottom-up, not from the top-down. I should be able to click in the same spot and expand it into full view again.

@mmalerba as @jelbourn told me to mention you :)

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaround

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions