You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: max value changes when selecting the 31st and changing the month through the wheel #29124
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v7.x
Current Behavior
When selecting the next month from the date-time picker that has the min and max values set, and the max is lower than the number of days of previous month, the max value is ignored completely and the next month values are not greyed out anymore. The calendar is broken and only page refresh fixes it.
Expected Behavior
The calendar should select the max date from the next month and leave the other dates greyed out.
I was able to replicate the issue. This is happening when the user selects the 31st and then switches the month through the wheel. This leads to the maxParts being updated to the last day of the newly selected month instead of the original max. We'll look into this as soon as we can.
changed the title [-]bug: Clamp date between min and max when using month picker does not work accordingly[/-][+]bug: max value changes when selecting the 31st and changing the month through the wheel[/+]on Mar 8, 2024
Activity
thetaPC commentedon Mar 8, 2024
Thank you for submitting the issue!
I was able to replicate the issue. This is happening when the user selects the 31st and then switches the month through the wheel. This leads to the
maxPartsbeing updated to the last day of the newly selected month instead of the original max. We'll look into this as soon as we can.[-]bug: Clamp date between min and max when using month picker does not work accordingly[/-][+]bug: max value changes when selecting the 31st and changing the month through the wheel[/+]fix(datetime): do not change max when the selected day does not exist…