picker
picker copied to clipboard
onCalendarChange is called with wrong value if only one value set in RangePicker
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: