ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: ion-datetime, error when selecting the year and month when [multiple] is true

Open Skandiy opened this issue 1 year ago • 0 comments

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

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

  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

Skandiy avatar Jun 28 '24 07:06 Skandiy