react-date-picker
react-date-picker copied to clipboard
Calendar still closes even when closeCalendar is set to false
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
I found that this only happens when the component is inside a Modal (MUI modal in this case).. any thoughts?
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.
This issue was closed because it has been stalled for 14 days with no activity.