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: datetime month and year picker not initialized properly on ios 14 #23910

Closed
4 of 6 tasks
wangzhengjiang opened this issue Sep 9, 2021 · 7 comments
Closed
4 of 6 tasks
Labels
package: core @ionic/core package type: bug a confirmed bug report v6 issues specific to Framework v6
Milestone

Comments

@wangzhengjiang
Copy link

Prequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

when using ion-datetime v6 on iphone, choice months, program will always return previous month of the selected month.

Expected Behavior

it should return the month of selected.

Steps to Reproduce

  1. created a new app using V6
  2. add ion-datetime in the pages
  3. deploy to iphone.
  4. run in xcode, when choice month, program will return previous month instead of the month of selected.

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.17.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.0.0-beta.5
@angular-devkit/build-angular : 12.1.4
@angular-devkit/schematics : 12.1.4
@angular/cli : 12.1.4
@ionic/angular-toolkit : 4.0.0

Capacitor:

Capacitor CLI : 3.2.0
@capacitor/android : 3.2.2
@capacitor/core : 3.2.0
@capacitor/ios : 3.2.2

Utility:

cordova-res : not installed globally
native-run (update available: 1.4.1) : 1.4.0

System:

NodeJS : v14.17.5 (/usr/local/bin/node)
npm : 7.22.0
OS : macOS Big Sur

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Sep 9, 2021
@liamdebeasi
Copy link
Contributor

Thanks for the issue. Can you reproduce this in an Ionic starter app and provide a link to the repo?

@liamdebeasi liamdebeasi added the needs: reply the issue needs a response from the user label Sep 9, 2021
@ionitron-bot ionitron-bot bot removed the triage label Sep 9, 2021
@wangzhengjiang
Copy link
Author

I created a app, can reproduce the error on iphone.

https://github.com/wangzhengjiang/testdatetime

@ionitron-bot ionitron-bot bot added triage and removed needs: reply the issue needs a response from the user labels Sep 9, 2021
@liamdebeasi
Copy link
Contributor

Thanks for the reply. I do not see any error logged in the console, and the dates appear to be returning correctly for me. Can you please clarify the steps to reproduce the issue?

@liamdebeasi liamdebeasi added the needs: reply the issue needs a response from the user label Sep 13, 2021
@ionitron-bot ionitron-bot bot removed the triage label Sep 13, 2021
@wangzhengjiang
Copy link
Author

demo_ion_datetime.-.SD.480p.mov

@ionitron-bot ionitron-bot bot added triage and removed needs: reply the issue needs a response from the user labels Sep 15, 2021
@liamdebeasi
Copy link
Contributor

I can reproduce this issue on iOS 14, but not on iOS 15. Seems to be resolved in iOS 15 but we should still try to find a workaround for iOS 14 given that iOS 15 is still fairly new.

@liamdebeasi liamdebeasi changed the title bug: ion-datetime v6, choice month return previous months bug: datetime month and year picker not initialized properly on ios 14 Sep 22, 2021
@liamdebeasi liamdebeasi added package: core @ionic/core package type: bug a confirmed bug report v6 issues specific to Framework v6 labels Sep 22, 2021
@liamdebeasi liamdebeasi added this to the 6.0.0-rc.2 milestone Nov 1, 2021
@liamdebeasi
Copy link
Contributor

Thanks for the issue. This has been resolved via #24142, and a fix will be available in an upcoming release of Ionic Framework.

@ionitron-bot
Copy link

ionitron-bot bot commented Dec 2, 2021

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Dec 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: core @ionic/core package type: bug a confirmed bug report v6 issues specific to Framework v6
Projects
None yet
Development

No branches or pull requests

2 participants