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

preventSnapRefocus doesn't work #645

Open
GitNorthWay opened this issue Apr 18, 2024 · 2 comments
Open

preventSnapRefocus doesn't work #645

GitNorthWay opened this issue Apr 18, 2024 · 2 comments

Comments

@GitNorthWay
Copy link

Subject of the issue

When there is a calendar with 2 months and you select a date range from the month at the right, this month goes to the left. You have the prop preventSnapRefocus to prevent this. Nothing changes setting this prop to either true or false.

[BUG] Bug Reproduce Steps

Create a calendar with DateRange and set direction to horizontal and months = 2.

[BUG] Expected behaviour

Expected behaviour should be no jumping months by default. If for some reason this is not possible or the case the respective prop 'preventSnapRefocus' should work.

Environment

Package Version: "^2.0.0-alpha.4"
React version: "18.2.0",
Node version: 20.11
Browser: Chrome 124.0.6367.61, Firefox 125.0.1

@GitNorthWay
Copy link
Author

You can close this issue. preventSnapRefocus works now. I think it was a cache issue not recognising the new prop and value.

@aman-kumar-ops
Copy link

It seem's still this is not working. For me focus shifted back to start range month.

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