react-datepicker
react-datepicker copied to clipboard
includeDates and showMonthYearPicker should not close the calendar when clicked on disabled months
Describe the bug DatePicker used with includeDates and showMonthYearPicker close the calendar when clicked on disabled months. It should remain open bydefault until included month is selected. Works fine without this prop showMonthYearPicker
To Reproduce
- Go to this example on official documentation: https://reactdatepicker.com/#example-include-dates:~:text=in%20the%20future-,Include%20Months%20in%20Month%20Picker,-()%20%3D%3E
- click in input to open the month year calendar popup
- click on disabled month
- it closes the calendar, but it should not.
We are looking for similar behaviour that this example has https://reactdatepicker.com/#example-include-dates:~:text=today%20and%20tomorrow-,Include%20date%20intervals,-()%20%3D%3E
Expected Behaviour For all variants of DatePicker, all events should be disabled for disabled elements.