Prerequisites
Ionic Framework Version
v8.x
Current Behavior
When opening the ion-datetime component with the defaultButton option (Done and Cancel buttons), the buttons do not appear when switching to the year or month selection view.
Expected Behavior
Expected Behavior
- When switching between the day view and the year/month view, the Done and Cancel buttons should remain visible and not disappear.
Steps to Reproduce
- Open the
ion-datetime component on the page.
- Set the
defaultButton option to show Done and Cancel buttons.
- Tap the date field to display the date picker dialog.
- Switch to the year or month selection view.
- Notice that the Done and Cancel buttons are not displayed.
Code Reproduction URL
https://ionicframework.com/docs/api/datetime#buttons
Ionic Info
- Capacitor Version: 7.1.0
- Platform: iOS / Android
Additional Information
No response