After integrating the package with project, when testing the integration it always shows the last month of the maxDate irrespective of the startDate and endDate initialized in the range.
For eg:
During test, if the startDate in the range is 02 Feb 2022, after opening the calendar the first month is shown as July 2035
[BUG] Bug Reproduce Steps
Integrate the component
Pass a range from today to today+1
Write a test file for the same
Set the same range
screen.debug()
It will show the last month for the calendar instead of the selected month
[BUG] Expected behaviour
Test should show the month for the current selected date
Subject of the issue
After integrating the package with project, when testing the integration it always shows the last month of the
maxDate
irrespective of thestartDate
andendDate
initialized in the range. For eg: During test, if thestartDate
in the range is 02 Feb 2022, after opening the calendar the first month is shown asJuly 2035
[BUG] Bug Reproduce Steps
screen.debug()
[BUG] Expected behaviour
Test should show the month for the current selected date
Environment
Package Version: 1.4.0 React version: 17.0.1 Node version: v16.13.1 Browser: Chrome 97