Skip to content

DatePicker: pressing space/Enter on Previous/Next month/year arrow buttons goes 2 months at a time #4620

@edsirko

Description

@edsirko

Bug Report

  • Package version(s): 5.79.1 and 5.46.0, but not 5.39.1
  • Browser and OS versions: Chrome, probably all browsers

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? (No)

Requested priority: (Normal)

Products/sites affected: (VSTS)

Describe the issue:

When keyboard navigating through the DatePicker, if you focus the up/down arrow to navigate to previous or next month (or year) and then hit spacebar or enter, you will actually navigate 2 months/years forward or back. This seems to have regressed between 5.39.1 and 5.46.0.

Actual behavior:

You will actually navigate 2 months/years forward or back.

Expected behavior:

You should navigate 1 month/year forward or back.

If applicable, please provide a codepen repro:

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions