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: iOS 18 (Angular, standalone) reorder wrapper hiding inner ionic elements content #30190

Open
3 tasks done
jakubforman opened this issue Feb 15, 2025 · 0 comments
Open
3 tasks done
Labels

Comments

@jakubforman
Copy link

jakubforman commented Feb 15, 2025

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

If I use ion-reorder as a wrapper, there is a problem on iOS 18 that some nested ion-... elements get "hidden" or their internal content disappears. Since the CSS of these elements doesn't change, I'm guessing that the problem will be inside the WebKit and Shadow DOM implementation when repositioning elements via ion-reorder. This is just a guess. At the moment, I don't know or have any idea how to fix this bug.

  • I have tried Capacitor v6 and v7 but no change.
  • I have not tested Android.
  • The bug is not manifested in iOS 18, the browser (Chrome) does not show the bug
  • The bug manifests itself when using both ionic cap run ios -l -external and ionic cap build ios

The sample below is from the pre-production version of the app, the link to the repository contains only the minimum necessary basis to reproduce the error.

iOS 17.5 working fine iOS 18+ bugging
Zaznam.obrazovky.2025-02-15.v.10.52.45.mov
Zaznam.obrazovky.2025-02-15.v.10.53.57.mov

Expected Behavior

Each version of iOS must work the same, i.e. dragging and dropping must not cause hiding of internal parts of elements that are under ion-....

Steps to Reproduce

Use ion-reorder as wrapper with some ion- elements inside.

    <ion-reorder-group [disabled]="false" (ionItemReorder)="handleReorder($event)">
    @for (stop of stops; track stopIndex; let stopIndex = $index) {
      <ion-reorder>
        <ion-item>
          <ion-badge slot="start">{{ stop.badge }}</ion-badge>
          <ion-label>{{ stop.name }}</ion-label>
        </ion-item>
      </ion-reorder>
    }
  </ion-reorder-group>

Code Reproduction URL

https://github.com/jakubforman/ionic-reorder-wrapper-bug

Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/opt/homebrew/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.4.3
@angular-devkit/build-angular : 17.3.12
@angular-devkit/schematics : 17.3.12
@angular/cli : 17.3.12
@ionic/angular-toolkit : 11.0.1

Capacitor:

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

Utility:

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

System:

NodeJS : v22.9.0 (/opt/homebrew/Cellar/node/22.9.0_1/bin/node)
npm : 10.8.3
OS : macOS 15.2

Additional Information

I have also tried Angular 17, 18 and 19, no change.

@ionitron-bot ionitron-bot bot added the triage label Feb 15, 2025
@jakubforman jakubforman changed the title bug: iOS 18 (Angular, standalone) reorder wrapper hiding inner ion-elements content bug: iOS 18 (Angular, standalone) reorder wrapper hiding inner ionic elements content Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant