-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Description
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
- v4.x
- v5.x
- v6.x
Current Behavior
When you try and navigate between "previous" and "next" months, the calendar event triggers twice. For example: If I'm on February and I select the "Next" arrow (>), instead of being taken to "March" I'm shown "April". The issue also happens with the "Previous" button where if I'm on February, and I click the "Previous" arrow (<), I should be taken to January 2022, but I'm instead taken to December 2021.
If I roll back to @ionic/angular: "6.0.0", the issue goes away, but as soon as I bump past @ionic/angular: "6.0.1" the issue shows up again. Looks to be something introduced around that time (as that's when ionic core version was bumped to 6.0.5).
Expected Behavior
Clicking on the Previous / Next arrows should only navigate a single month instead of double.
Steps to Reproduce
You can see this very issue on the Ionic Framework Docs page by clicking on the previous / next arrows on any of the examples: https://ionicframework.com/docs/api/datetime. I also created a Stackblitz below.
Code Reproduction URL
I created a StackBlitz using Angular 13 with @ionic/angular: "6.0.1" that highlights the issue.
I also have a working StackBlitz using Angular 13 with @ionic/angular: "6.0.0"
Ionic Info
Ionic:
Ionic CLI : 6.18.1
Ionic Framework : @ionic/angular 6.0.5
@angular-devkit/build-angular : 13.2.2
@angular-devkit/schematics : 13.2.2
@angular/cli : 13.2.2
@ionic/angular-toolkit : 6.0.0
Cordova:
Cordova CLI : 10.0.0
Cordova Platforms : android 9.1.0, ios 6.2.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 17 other plugins)
Utility:
cordova-res (update available: 0.15.4) : 0.15.3
native-run (update available: 1.5.0) : 0.2.9
System:
Android SDK Tools : 26.1.1
ios-deploy : 1.10.0
ios-sim : 8.0.2
NodeJS : v14.17.5
npm : 7.22.0
OS : macOS Catalina
Xcode : Xcode 11.3.1 Build version 11C504
Additional Information
No response