question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: ios, pressing next/prev buttons in datetime in accordion does not work

See original GitHub issue

Prerequisites

Ionic Framework Version

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

Current Behavior

The arrows on ion-datetime do not work on iOS devices (tested on iPhone 11 and iPhone 11 Pro) when wrapped by ion-accordion.

Expected Behavior

The arrows should be able to change months like on every other device.

Steps to Reproduce

Use ion-accordion-group to wrap ion-accordion and place inside the content slot ion-datetime component. The arrows should not work on iOS devices.

Code Reproduction URL

https://github.com/DawidWetzler/ionic-accordion-datetime-bug

Ionic Info

ionic info [WARN] Error loading @capacitor/android package.json: Error: Cannot find module ‘@capacitor/android/package’

   Require stack:
   - /Users/wecler/.nvm/versions/node/v16.14.0/lib/node_modules/@ionic/cli/lib/project/index.js
   - /Users/wecler/.nvm/versions/node/v16.14.0/lib/node_modules/@ionic/cli/lib/index.js
   - /Users/wecler/.nvm/versions/node/v16.14.0/lib/node_modules/@ionic/cli/index.js
   - /Users/wecler/.nvm/versions/node/v16.14.0/lib/node_modules/@ionic/cli/bin/ionic

Ionic:

Ionic CLI : 6.19.0 (/Users/wecler/.nvm/versions/node/v16.14.0/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/vue 6.1.1

Capacitor:

Capacitor CLI : 3.4.3 @capacitor/android : not installed @capacitor/core : 3.4.3 @capacitor/ios : 3.4.3

Utility:

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

System:

NodeJS : v16.14.0 (/Users/wecler/.nvm/versions/node/v16.14.0/bin/node) npm : 8.3.1 OS : macOS Monterey

Additional Information

I’ve been looking at the issue to fix it myself but I couldn’t figure out how to fix it in a “elegant” way with preserving smooth sliding animation when changing a month.

In ion-datetime.js within the nextMonth and prevMonth methods you coul delete behaviour: 'smooth' and the issue should be gone.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
liamdebeasicommented, Apr 25, 2022

Good news: The WebKit team has fixed the issue: https://bugs.webkit.org/show_bug.cgi?id=239605

The fix should be available in an upcoming release of iOS. I will close out this thread when the fix ships.

0reactions
ionitron-bot[bot]commented, Oct 13, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bootstrap 3 accordion collapse does not work on iphone
I have built a site which includes an "offcanvas" navigation menu on smaller screens. The user clicks "the hot dog button", and the...
Read more >
ion-datetime - Ionic Framework
This component displays buttons which show the current date and time values. When the buttons are tapped, the date or time pickers open...
Read more >
Bug List - Bugzilla - Zimbra
This list is too long for Bugzilla's little mind; the Next/Prev/First/Last buttons won't appear on individual bugs. Hide Search Description.
Read more >
Fix Packs - Profound Logic
Fixed bug where items in an overlaid window were not visible. Broken since Version 6 Fix Pack 16.0. Fixed a bug where dragging...
Read more >
What's new - Radzen
(Blazor) DropDownDataGrid clear button should not open popup. (Blazor) WASM localization client project merge fixed. Download. Windows · macOS · Linux 64bit ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found