Skandiy · GitHub

Prerequisites

Ionic Framework Version

v7.x, v8.x

Current Behavior

If you switch to the year and month selection mode, then when the year and month are alternately changed, the value of the month or year is reset, respectively, to a value equal to the current date

ion-datetime_.Ionic.API.Input.for.Datetime.Format.Picker.2024-06-28.08-48-17.mp4

Expected Behavior

The values of the year and month should change independently of each other. Changing the value of the year should not affect the change in the value of the month and vice versa

Steps to Reproduce

  1. Open the example Stackblitz url of the ion-datetime.
  2. Switch to the year and month selection mode
    image
  3. Alternately change the year and month in this window

Code Reproduction URL

https://stackblitz.com/edit/angular-yjnklk?file=src%2Fapp%2Fapp.component.ts

Ionic Info

@angular/animations
17.0.1

@angular/common
17.0.1

@angular/compiler
17.0.1

@angular/core
17.0.1

@angular/forms
17.0.1

@angular/platform-browser
17.0.1

@angular/platform-browser-dynamic
18.0.1

@angular/router
17.0.1

@ionic/angular
8.2.2

@ionic/core
8.2.2

rxjs
7.8.1

tslib
2.6.2

zone.js
0.14.2

Additional Information

No response

Read the original on github.com ↗