You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 of 28 February
antoine92190
changed the title
bug: datetime do not consist selected value after month change
bug: datetime do not persist selected value after month change
Feb 21, 2022
Hello @antoine92190 thanks for reporting this issue!
I have an open PR to address the issue causing this bug (#24827). When confirming the date selection, we were incorrectly using the visible calendar date instead of the selected calendar date.
I've created a dev build, if you would like to test and confirm the problem is resolved on your end:
6.0.9-dev.1645468846.3ebb3ac
You can install any of the @ionic/* packages with the dev build (excluding SSR packages).
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Prerequisites
Ionic Framework Version
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
this.datetime.nativeEl.confirm()
28 March
instead of28 February
Code Reproduction URL
No response
Ionic Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: