Skip to content

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

Description

@aravindanve

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions