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
v7.x
Current Behavior
After updating my app to "Ionic 7", I encountered a bug in "ion-segment": say you have a page with an ion-segment with 5 segments and the third is pre-selected through the [(ngModel)] or [value] binding. In addition to the value bindings [scrollable]="true" is also set (scrollable is actually used in my real application). Then if you navigate into this page it takes a moment to render the ion-segment component at the correct position.
As far as I can tell this bug is only reproducible on iOS (Simulator or Device). It's reproducible in Safari on my desktop computer but not in Chrome.
I've made a short clip to see the bug in action and also made the code to reproduce it available.
Prerequisites
Ionic Framework Version
v7.x
Current Behavior
After updating my app to "Ionic 7", I encountered a bug in "ion-segment": say you have a page with an
ion-segmentwith 5 segments and the third is pre-selected through the[(ngModel)]or[value]binding. In addition to the value bindings[scrollable]="true"is also set (scrollable is actually used in my real application). Then if you navigate into this page it takes a moment to render theion-segmentcomponent at the correct position.As far as I can tell this bug is only reproducible on iOS (Simulator or Device). It's reproducible in Safari on my desktop computer but not in Chrome.
I've made a short clip to see the bug in action and also made the code to reproduce it available.
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2023-10-18.at.11.58.29.mp4
https://github.com/trytuna/IonicSegmentBug
Expected Behavior
Should render without any visual glitches
Steps to Reproduce
Code Reproduction URL
https://github.com/trytuna/IonicSegmentBug
Ionic Info
% ionic info
[WARN] Error loading @capacitor/android package.json: Error: Cannot find module '@capacitor/android/package.json'
Ionic:
Ionic CLI : 7.1.1 (/Users/timo/.nvm/versions/node/v16.17.1/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 7.5.0
@angular-devkit/build-angular : 16.2.6
@angular-devkit/schematics : 16.2.6
@angular/cli : 16.2.6
@ionic/angular-toolkit : 9.0.0
Capacitor:
Capacitor CLI : 5.5.0
@capacitor/android : not installed
@capacitor/core : 5.5.0
@capacitor/ios : 5.5.0
Utility:
cordova-res : not installed globally
native-run : 1.7.3
System:
NodeJS : v16.17.1 (/Users/timo/.nvm/versions/node/v16.17.1/bin/node)
npm : 9.8.0
OS : macOS Unknown
Additional Information
No response