Month jumping on date selection #441
Description
Subject of the issue
I'm using DateRangePicker in a Next.js project.
There are two months next to each other, let's say January and February. When I select the start date from the second month (February), then it jumps to the left, replacing the first month (January). And on the right, a new month jumps in (March).
[BUG] Bug Reproduce Steps
- Go to this demo page.
- Select the start date from the second month
- Second month jumps to the left
You can observe this issue in this video.
[BUG] Expected behavior
Same behavior as on your demo page or in this video.
When selecting the start date from the second month: both months stay in place.
Environment
Package Version: 1.1.3
React version: ^16.13.1
Next version: 10.0.6
Node version: 10.23.0
Browser: Chrome 88.0.4324.104
Here are all dependencies from package.json:
"dependencies": {
"date-fns": "2.16.1",
"next": "latest",
"react": "^16.13.1",
"react-date-range": "1.1.3",
"react-dom": "^16.13.1"
},
Any help will be kindly appreciated.
Thank you!