Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.
This repository was archived by the owner on May 19, 2025. It is now read-only.

Month jumping on date selection #441

Closed
@teksebarna

Description

@teksebarna

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

  1. Go to this demo page.
  2. Select the start date from the second month
  3. 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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions