Skip to content

bug: ion-datetime auto-selecting date when month/year changed (more then one month) when you can do multiple dates #30266

Description

@beckyhilton

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

https://www.loom.com/share/4fd796af5d4d4250942a7a8cc85fb3b2?sid=0ae84e29-8334-417b-a5d3-6475e9191449

When changing the month & year (not using the arrows) it automatically selects a date in the new month

Expected Behavior

Nothing should be automatically selected and it should look like when you first come to a blank calendar

Steps to Reproduce

  1. Go to a page with the ion-datetime displayed as a month with multi-select
  2. Select the Month/Year in the upper left hand corner
  3. Change to a different month and select the Month/Year at the top to close
  4. The new month is displayed and a date is automatically selected

Code Reproduction URL

https://ionicframework.com/docs/api/datetime

Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.4.3
@angular-devkit/build-angular : 17.3.11
@angular-devkit/schematics : 17.3.11
@angular/cli : 17.3.11
@ionic/angular-toolkit : 11.0.1

Capacitor:

Capacitor CLI : 7.0.1
@capacitor/android : 7.0.1
@capacitor/core : 7.0.1
@capacitor/ios : 7.0.1

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    Ionic Review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions