picker icon indicating copy to clipboard operation
picker copied to clipboard

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

Open aravindanve opened this issue 1 year ago • 0 comments

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

aravindanve avatar Apr 02 '24 06:04 aravindanve