Closed
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
After selecting a date in the calendar, then changing month without selecting a new date and confirm using this.datetime.nativeEl.confirm();
to confirm the value, the date value is correct, but the month value is the one from the month currently displayed, not the one we selected.
Screen.Recording.2022-02-21.at.10.47.53.mov
Expected Behavior
The selected day should be kept even if we are navigating through months.
Steps to Reproduce
- Select the last day of a month (28 February) then swipe to next month (March) without selecting any date.
- Confirm the date using
this.datetime.nativeEl.confirm()
- The selected date is
28 March
instead of28 February
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.18.1 (/Users/antoinedupont/.npm-packages/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.0.8-dev.1644432569.937206e
@angular-devkit/build-angular : 12.2.4 (/Users/antoinedupont/dev/agorapulse/platform/frontend/node_modules/@angular-devkit/build-angular)
@angular-devkit/schematics : 11.2.18
@angular/cli : 12.2.4 (/Users/antoinedupont/dev/agorapulse/platform/frontend/node_modules/@angular/cli)
@ionic/angular-toolkit : 3.1.1
Capacitor:
Capacitor CLI : 3.2.4
@capacitor/android : 3.2.4
@capacitor/core : 3.2.4
@capacitor/ios : 3.2.4
Cordova:
Cordova CLI : not installed
Cordova Platforms : not available
Cordova Plugins : not available
Utility:
cordova-res : not installed globally
native-run : 1.5.0
System:
NodeJS : v14.17.0 (/usr/local/bin/node)
npm : 6.14.13
OS : macOS Monterey
Xcode : Xcode 13.2.1 Build version 13C100
Additional Information
No response