ionic-team / ionic-team/ionic-framework
bug: blank screen when interrupting tab navigation
- 主要语言
- TypeScript
- 星标
- 52.7k
- 派生
- 13.3k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 51
描述
### Prerequisites
- [x] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [x] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [x] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.
### 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_
贡献指南
调研方向
Start with the StackBlitz reproduction at src/app/tab1/tab1.page.ts and follow the tab and child-route navigation described in the issue. Reproduce the interrupted swipe before switching tabs, then trace the affected tab's ion-hidden state. Done means switching tabs during the interrupted navigation consistently shows the correct page rather than a blank screen.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100