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

bug: Done and Cancel Buttons Not Displayed in ion-datetime When Switching to Year/Month Selection #30294

Open
3 tasks done
tzdevelopteam opened this issue Mar 23, 2025 · 0 comments
Labels

Comments

@tzdevelopteam
Copy link

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

  1. Open the ion-datetime component on the page.
  2. Set the defaultButton option to show Done and Cancel buttons.
  3. Tap the date field to display the date picker dialog.
  4. Switch to the year or month selection view.
  5. 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

@ionitron-bot ionitron-bot bot added the triage label Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant