Skip to content

[Bug]: DatePicker: Cannot select date range using keyboard #17310

Closed
@makafsal

Description

@makafsal

Package

@carbon/react

Browser

Chrome

Package version

v1.65.0

React version

v18.2.0

Description

When trying to select a date range using the keyboard it loses focus after selecting an initial date by pressing the 'Enter' key.

Screen.Recording.2024-09-02.at.4.39.09.PM.mov

Reproduction/example

https://stackblitz.com/edit/github-bmgxxb-ds4ysm?file=src%2FApp.jsx

Steps to reproduce

  1. Press the Tab key and focus on the DatePicker (calendar will appear)
  2. Press the Down Arrow, focus date
  3. Press the Enter key to select the focused date (We can observe that the focus is lost from Calendar)

Suggested Severity

Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.

Application/PAL

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions