-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: DatePicker: Cannot select date range using keyboard #17310
Comments
Hi @makafsal, I can see the focus state on the start date after selecting it. I've added a screenshot and screen recording for reference. Could you please confirm if you're encountering the issue you've mentioned in the 'Date picker range with calendar' or in another variant? Screen.Recording.2024-09-04.at.12.23.59.PM.mov |
Hi @Kritvi-bhatia17, Thank you for your response. I figured out that the issue pops up when I give the |
Hi @makafsal! @carbon-design-system/developers will help us with that. |
Hi @Kritvi-bhatia17, we do have a focus issue of a date picker #17398 |
Hi @Geethkadali! Thanks for opening the issue. @carbon-design-system/developers will look into it. |
@Kritvi-bhatia17 - I think you don't need any more info from my end so that you can remove the |
Hey @makafsal ,
after selecting the start date (start date remains focused ) and when you select the end date the calendar collapse and focus moved back to the triggering element i.e (start input date) and the range is selected Could you expand more on the the issue/required behavior ? |
Closing this since it is the expected behaviour of focus - happy to reopen with more details |
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
Tab
key and focus on theDatePicker
(calendar will appear)Down Arrow
, focus dateEnter
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
The text was updated successfully, but these errors were encountered: