You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the DatePicker range with calendar and passing in the selected date array as a value, the first datepicker displays "[startDate] to [endDate]" instead of just the startDate
This is the same issue as: #4803
It appears to have started occurring again around version 1.56.
Use the code from the storybook to set up a date picker range with calendar.
Save the value of the onChange to state and pass that state in as a value (I don't think the value strictly needs to be saved in state. Just as long as you can get two values in an array passed in
When the code is running, select a range of dates. It does not matter which dates.
Notice that the first of the two date picker boxes in the range displays "[dateOne] to [dateTwo]" instead of just "[dateOne]"
Suggested Severity
Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.
Package
@carbon/react
Browser
Chrome
Package version
1.61
React version
18.3.1
Description
When using the DatePicker range with calendar and passing in the selected date array as a value, the first datepicker displays "[startDate] to [endDate]" instead of just the startDate
This is the same issue as: #4803
It appears to have started occurring again around version 1.56.
Reproduction/example
https://codesandbox.io/s/datepicker-issue-pc8ktz?file=/src/index.js
Steps to reproduce
Suggested Severity
Severity 2 = User cannot complete task, and/or no 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: