Skip to content

bug: ion-datetime-button doesn't open ion-datetime modal #26916

Description

@de-dan

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • v7.x
  • Nightly

Current Behavior

When I click on ion-datetime-button, the darker overlay is shown, but no modal with datetime.

I use chrome 110.0.5481.77 on a Mac 13.2.1 but I have this bug reported from users with different OS's and browsers.
This problem occured after I upgraded to 6.6.0. Downgrading to 6.5.7 resolved the issue!

Expected Behavior

Show the modal when I click on date or time of ion-datetime-button.

Steps to Reproduce

Create a new ionic project
ionic start
I used the blank starter, angular

in home.page.html paste in the ion-datetime-button example from the docs

<ion-datetime-button datetime="datetime"></ion-datetime-button>

<ion-modal [keepContentsMounted]="true">
  <ng-template>
    <ion-datetime id="datetime"></ion-datetime>
  </ng-template>
</ion-modal>

Run it and click on the date or time. Only overlay is shown.

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.20.8 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.6.0
@angular-devkit/build-angular : 15.2.1
@angular-devkit/schematics : 15.2.1
@angular/cli : 15.2.1
@ionic/angular-toolkit : 8.0.0

Capacitor:

Capacitor CLI : 4.7.0
@capacitor/android : not installed
@capacitor/core : 4.7.0
@capacitor/ios : not installed

Utility:

cordova-res : 0.15.4
native-run : 1.7.2

System:

NodeJS : v18.14.2 (/usr/local/bin/node)
npm : 9.5.0
OS : macOS

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