react-date-picker icon indicating copy to clipboard operation
react-date-picker copied to clipboard

Calendar still closes even when closeCalendar is set to false

Open edwinmunguia opened this issue 2 years ago • 2 comments

Before you start - checklist

  • [X] I followed instructions in documentation written for my React-Date-Picker version
  • [X] I have checked if this bug is not already reported

Description

when the calendar is open and i change, for example, the month or year, the value doesn't change and the calendar closes even with prop closeCalendar set to false

any reason for this behavior?

Steps to reproduce

jus include the component like this:

<DatePicker
      format='MM/dd/yyyy'
      onChange={handleDateChange}
      value={values.dateOfBirth}
      closeCalendar={false}
      />

Expected behavior

I expect this calendar to be open whenever i change the year or month

Actual behavior

closes every time i change month or year even with prop closeCalendar set to false

Additional information

No response

Environment

  • Browser (if applicable): Chrome Versión 102.0.5005.61
  • React-Date-Picker version: 8.4.0
  • React version: 17.0.2

edwinmunguia avatar Jun 13 '22 16:06 edwinmunguia

I found that this only happens when the component is inside a Modal (MUI modal in this case).. any thoughts?

edwinmunguia avatar Jun 15 '22 13:06 edwinmunguia

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

github-actions[bot] avatar Sep 19 '22 01:09 github-actions[bot]

This issue was closed because it has been stalled for 14 days with no activity.

github-actions[bot] avatar Oct 03 '22 01:10 github-actions[bot]