Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: ion-datetime opens to incorrect date when multiple dates from different months are selected #29604

Closed
3 tasks done
kemp opened this issue Jun 10, 2024 · 2 comments · May be fixed by #29610
Closed
3 tasks done

bug: ion-datetime opens to incorrect date when multiple dates from different months are selected #29604

kemp opened this issue Jun 10, 2024 · 2 comments · May be fixed by #29610
Labels

Comments

@kemp
Copy link
Contributor

kemp commented Jun 10, 2024

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

When instantiating an IonDatetime with the following parameters (for example):

  <ion-datetime
    presentation="date"
    :multiple="true"
    :value="['2024-05-26', '2024-06-10']"
  />

the date picker is presented in May of 2021. I tested with a few other dates, and it seems the issue persists, I'm not sure of the pattern.

Expected Behavior

It is expected that the date picker would open to either May or June of 2024.

Steps to Reproduce

  1. Open the reproduction URL, which was forked from the example documentation

Code Reproduction URL

https://stackblitz.com/edit/nuuduy?file=src%2Fcomponents%2FExample.vue

Ionic Info

Ionic:

   Ionic CLI : 5.4.16

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v18.20.3
   npm    : 10.2.3
   OS     : Linux 5.0

(this is from the StackBlitz project)

Additional Information

I tested in Firefox 125.0.2 and Chrome Version 125.0.6422.60 (Official Build) (64-bit) and received the same result in both.

@thetaPC
Copy link
Contributor

thetaPC commented Jun 12, 2024

Thank you for submitting the issue!

I'm going to close this since it's a duplicate of #29094. I recommend subscribing to that issue for updates on a fix.

@thetaPC thetaPC closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2024
@kemp
Copy link
Contributor Author

kemp commented Jun 12, 2024

Thank you for the update. I will subscribe to the other issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants