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

gw-preserve-datepicker-date-selection-when-changing-months.js: Fixed an issue with edge cases like 29 February, 31 April etc. #915

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

saifsultanc
Copy link
Contributor

Context

⛑️ Ticket(s): https://secure.helpscout.net/conversation/2725332347/72239

Summary

Issues with edge cases. For instance, if we had the selection as 31 October and then we chose the month of April. Since it cannot select 31st April, it is going to end up selection as 1st of May (outside our month selection of April). Likewise, 30 April and then selecting February would select 2nd March (for non-leap) and 1st March (for leap year). All these edge cases have been handled with a maxDay, so any date selection is capped to that max value.

BEFORE:
https://www.loom.com/share/cdf3a97e31684d3899311a24c6aeb6f6

AFTER:
https://www.loom.com/share/45ad6bb1f061409195bbc20910846c3e

…d an issue with edge cases like 29 February, 31 April etc.
@saifsultanc saifsultanc added the bug Something isn't working label Nov 5, 2024
…d an issue with edge cases like 29 February, 31 April etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

1 participant