Skip to content
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 range: Picking a 1st date which is beyond the date selected will automatically make that as the 2nd date but going out of the date picker component will change the 2nd date to be the max date from the previous selection. #14047

Closed
2 tasks done
polgas16 opened this issue Jun 21, 2023 · 0 comments · Fixed by #16202

Comments

@polgas16
Copy link

Package

@carbon/react

Browser

Chrome

Package version

v1.3.11

React version

v18.1.0

Description

[Bug]: Datepicker range: Picking a 1st date which is beyond the date selected will automatically make that as the 2nd date but going out of the date picker component will change the 2nd date to be the max date from the previous selection.

Expection is that the end date should be cleared and focus should move to end date.

Reproduction/example

https://react.carbondesignsystem.com/?path=/story/components-datepicker--range-with-calendar

Steps to reproduce

Go to https://react.carbondesignsystem.com/?path=/story/components-datepicker--range-with-calendar

Select start date as June 1st.
Select end date as June 3rd.
Go back to start and and select June 4th, this in turn will automatically change end date to June 4th while making the previous end date (June 3rd as the start date)

Click outside the date picker and it will automatically change the end date to be the same as start date (June 3rd)

Suggested Severity

None

Application/PAL

URP

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants