Skip to content

Datepicker - close calendar after selecting date using keyboard #7142

Closed
@pchristou

Description

@pchristou

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Datepicker calendar should close when current day or another day is selected via keyboard i.e. arrow keys + Enter.

What is the current behavior?

Datepicker calendar only closes when a date is selected using mouse.

What are the steps to reproduce?

Open the datepicker, use the arrow keys to select a date, press Enter. Datepicker calendar remains open and no selection is made.

The example datepicker exhibits the behaviour: https://material.angular.io/components/datepicker/examples

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

Consistent behaviour with mouse vs keyboard. Better usability for users who traverse forms using a keyboard.

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

Angular v4, material 2.0.0-beta.10

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions