Skip to content

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

@tzdevelopteam

Description

@tzdevelopteam

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions