ionic-framework
ionic-framework copied to clipboard
bug: ion-datetime, error when selecting the year and month when [multiple] is true
Prerequisites
- [X] I have read the Contributing Guidelines.
- [X] I agree to follow the Code of Conduct.
- [X] 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
https://github.com/ionic-team/ionic-framework/assets/44109078/a05226eb-053e-446c-9bbd-b833aeffd004
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
- 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