Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ujjwalvaibhav opened this issue Nov 7, 2023 · 0 comments · Fixed by #4607

Comments

@ujjwalvaibhav
Copy link

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.

yuki0410-dev added a commit to yuki0410-dev/react-datepicker that referenced this issue Mar 17, 2024
yuki0410-dev added a commit to yuki0410-dev/react-datepicker that referenced this issue Mar 17, 2024
yuki0410-dev added a commit to yuki0410-dev/react-datepicker that referenced this issue Mar 17, 2024
yuki0410-dev added a commit to yuki0410-dev/react-datepicker that referenced this issue Mar 18, 2024
martijnrusschen added a commit that referenced this issue Mar 19, 2024
fix: #4360 Cancel Event when clicked/MouseEnter on disabled months/quarters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant