bug: blank screen when interrupting tab navigation

Đang mở
#30,494 1 bình luận 3 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
angular, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu với bản tái hiện trên StackBlitz tại src/app/tab1/tab1.page.ts và lần theo việc điều hướng giữa các tab và child route được mô tả trong issue. Tái hiện thao tác swipe bị gián đoạn trước khi chuyển tab, sau đó theo dõi trạng thái ion-hidden của tab bị ảnh hưởng. Được xem là hoàn tất khi việc chuyển tab trong lúc điều hướng bị gián đoạn luôn hiển thị đúng trang thay vì màn hình trống.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
52.8k
Fork
13.3k
Merge trung bình
3 ngày 1 giờ
Pull request đã merge (30 ngày)
86

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ionic-team/ionic-framework

Tất cả issue của ionic-team/ionic-framework

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.