bug: blank screen when interrupting tab navigation

Ouverte
#30,494 1 commentaire 3 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
angular, typescript
Domaine
frontend

Piste de recherche

Commencez par la reproduction StackBlitz dans src/app/tab1/tab1.page.ts et suivez la navigation entre les onglets et les routes enfants décrite dans l’issue. Reproduisez le swipe interrompu avant de changer d’onglet, puis suivez l’état ion-hidden de l’onglet concerné. Le travail est terminé lorsque le changement d’onglet pendant la navigation interrompue affiche systématiquement la bonne page plutôt qu’un écran vide.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

triage
Prerequisites
Ionic Framework Version

v8.x

Current Behavior

Hi,

when a navigation inside a tab from a child back to its parent (e.g. Tab1 with a child-route /tabs/tab1/details back to /tabs/tab1) is interrupted mid-navigation, e.g. when a user slowly swipes to the right to close the details and before finishing the swipe this user clicks on another tab (Tab2) Tab2's ion-hidden class is not removed and a blank screen is shown.

Expected Behavior

Navigation should happen as usual and show the correct page

Steps to Reproduce

I provided a StackBlitz based on the tabs starter:
https://stackblitz.com/edit/stackblitz-starters-bcsmo9zw?file=src%2Fapp%2Ftab1%2Ftab1.page.ts

  • open Tab 1
  • click the ion item to navigate to the details
  • slowly swipe fully to the right
  • while dragging, hover over the Tab 3 button
  • release and click before the animation finishes

This is easier done on mobile with two fingers

https://github.com/user-attachments/assets/310efe8f-8a82-4deb-8f2d-f3e532f062bd

Code Reproduction URL

https://stackblitz.com/edit/stackblitz-starters-bcsmo9zw?file=src%2Fapp%2Ftab1%2Ftab1.page.ts

Ionic Info

Ionic:

Ionic CLI : 7.2.0
Ionic Framework : @ionic/angular 8.6.1
@angular-devkit/build-angular : 19.2.15
@angular-devkit/schematics : not installed
@angular/cli : 19.2.15
@ionic/angular-toolkit : 12.2.0

Capacitor:

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

Utility:

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

System:

NodeJS : v22.16.0
npm : 10.9.2
OS : macOS Unknown

Additional Information

No response

Langage dominant
TypeScript
Étoiles
52.8k
Forks
13.3k
Merge moyen
3 j 1 h
PR mergées (30 j)
86

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de ionic-team/ionic-framework

Toutes les issues de ionic-team/ionic-framework

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.