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

onCalendarChange is called with wrong value if only one value set in RangePicker #783

Open
aravindanve opened this issue Apr 2, 2024 · 0 comments

Comments

@aravindanve
Copy link

In RangePicker when both start and end values are selected, if the user changes only the end value and clicks outside, the value is correctly set to [oldStartValue, newEndValue] but onCalendarChange is called after onChange with the wrong values [oldStartValue, oldEndValue]

Here is the reproduction:
https://codesandbox.io/p/sandbox/cocky-tamas-fflnh2

Here is a screenshot:
Screenshot 2024-04-02 at 11 36 33 AM

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

1 participant