react-datepicker icon indicating copy to clipboard operation
react-datepicker copied to clipboard

includeDates and showMonthYearPicker should not close the calendar when clicked on disabled months

Open ujjwalvaibhav opened this issue 2 years ago • 0 comments

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

  1. 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
  2. click in input to open the month year calendar popup
  3. click on disabled month
  4. 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.

ujjwalvaibhav avatar Nov 07 '23 13:11 ujjwalvaibhav