Skip to content

Date range abnormal onChange behaviour #1810

@Vin-dellavv

Description

@Vin-dellavv

Expectations

After selecting the dates and click on confirm btn, i could save the selected unmodified dates.

Reality

After select startDate and endDate, next click on any element triggers again onChange fn modifying my startDate from dd/MM/yyyy into MM/dd/yyyy.

Steps to Reproduce

Here the sandox codesandbox

  1. Select start date -> 01/05/2024
  2. Select end date -> anything
  3. click on confirm button

Fine Print

  • Version: "@zendeskgarden/react-datepickers": "^8.73.2"
  • Browsers: all

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