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: Re-opening the IonDatetime calendar which uses a react state variable in isDateEnabled check disables all dates. #31151
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
IonDatetime that has an isDateEnabled check that uses react state disables all dates when you close and reopen the calendar. This seems to have started with Ionic version 8.8.6. The temp workaround is to roll back to Ionic 8.8.5 or earlier.
For some reason this happens when you're using a react state variable in the isDateEnabled check. If you are just doing something on the fly like checking if the date is odd or even instead of comparing it against a state var, it seems to work ok.
Set the dates in the state to something in the current month (Depending on when you're looking at this ticket).
Click on the date to bring up the calendar. This will show the calendar with the given dates disabled, but the rest enabled.
Select a date or just click off the calendar to close it. Click the date button again to re-open the calendar. All the dates will be disabled. This seems to be an issue with ionic 8.8.6+. Workaround is to roll back to 8.8.5 until the fix is in place.
Verified on 9.0.8. This is the same issue as #31143. Reopening a datetime inside a modal left the calendar scrolled to the previous month while the header still showed the current one, so every date in your list appeared disabled. Your odd/even check only seemed to work because the previous month has odd days too. #31335 fixed it in v8.8.18: update to 8.8.18 or later. Your isDateEnabled callback and React state don't need any changes.
Closing this as a duplicate of #31143, where the full details are.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
thetaPC commentedon Oct 20, 2026
Thanks for the report, and sorry for the delay.
Verified on 9.0.8. This is the same issue as #31143. Reopening a datetime inside a modal left the calendar scrolled to the previous month while the header still showed the current one, so every date in your list appeared disabled. Your odd/even check only seemed to work because the previous month has odd days too. #31335 fixed it in v8.8.18: update to 8.8.18 or later. Your
isDateEnabledcallback and React state don't need any changes.Closing this as a duplicate of #31143, where the full details are.
ionitron-bot commentedon Nov 19, 2026
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.