Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selection buttons of month are not working #647

Open
Aj-thinks opened this issue May 18, 2024 · 2 comments
Open

Selection buttons of month are not working #647

Aj-thinks opened this issue May 18, 2024 · 2 comments

Comments

@Aj-thinks
Copy link

Month changing buttons are not working.

If I click the buttons to change the next month or previous month, months are not changing.

Actually months should change , but in my case it is not happening

image

I am using :
"date-fns": "^3.6.0",
"react-date-range": "^2.0.1",

Can anyone help me to solve this. Thanks in advance.

@shelby-tactica
Copy link

shelby-tactica commented Aug 12, 2024

Hey! We had this problem for a bit, it turns out the parent component that the date range was placed in was re-rendering whenever the date changed, which caused issues. Getting that locked down so that it wasn't re-rendering seems to have solved the issue.

@shelby-tactica
Copy link

Specifically we were updating something hooked into the 'onChange' function, which caused a re-render.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants