ionic-team / ionic-team/ionic-framework

bug: Swipe back and instant tab change make ion tab display: none

未关闭
#31,292 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
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, this is very difficult to explain, so i will leave it in video:

Tried it on multiple ionic apps, and the error occurred on multiple ionic versions, even on 8.8.13 @ionic/angular version

basically, when you route to another page within tab, then you swipe back and instantly you click on another tab then you get blank page, when you click back to the previous ion-tab, its blank, if you click to another, its ok then, but the initial tab is always blank until you click on tab button again, when it resets. you can see this behavior in the video.

It seems that navBack animation takes some time (approx 500ms, if you within that 500ms click on another ion-tab this big occcures)

video is on google disk: https://drive.google.com/file/d/1O3f6jJ6tY2kkJi7yG2hXIqp8-PbrU5ip/view?usp=sharing

Seems for me like problem occurs only with swipe back gesture, when clicking on ion-back-button it seems it waits until transition ends and then ion tab can be activated, but within swipe back its possible to activate another ion tab before transition ends

### Expected Behavior

Activating another ion tab should be possible only after transition ends

### Steps to Reproduce

See a video, any ion-tab project with navigation

### Code Reproduction URL

https://github.com/rostislavcz/ion-tabs-bug

### Ionic Info

cd bug, ionic serve

### Additional Information

_No response_

贡献指南

打开贡献指南

调研方向

Start with the linked reproduction repository and run `ionic serve` as described in the issue. Reproduce the swipe-back followed by an immediate tab change, then inspect the Ionic tab and navigation transition entry points involved in the blank view. Done means the tab remains visible and usable when switching during or after the swipe-back transition.

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
需要澄清
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。