ionic-team / ionic-team/ionic-framework

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

Open
#31,292 0 comments 0 reactions 0 assignees View on GitHub
triage
Dominant language
TypeScript
Stars
52.7k
Forks
13.3k
Avg merge
1d 15h
Merged PRs (30d)
51

Description

### 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_

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.