Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
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.mp4Expected 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
- Open the example Stackblitz url of the ion-datetime.
- Switch to the year and month selection mode

- 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