[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
Labels
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
The text was updated successfully, but these errors were encountered: