NativeScript / NativeScript/angular

Wrong back navigation after using nested outlets with the TabsComponent

未關閉
#131 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
TypeScript
星號
55
分支
13
平均合併
16 分鐘
30 天內合併 PR
1

描述

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 8.6.5
  • Cross-platform modules:
  • Android Runtime: 8.6.2
  • iOS Runtime: -
  • Plugin(s): -
  • NativeScript-Angular: 16.0.1
  • Angular: 16.2.0

Describe the bug

To Reproduce

I have created a demo app to reproduce the issue:
https://github.com/tujlaky/nativescript-tabs-demo

The following navigation steps would break the app:

  • Item 1
  • Show more
  • Press the back arrow in the ActionBar twice
  • Open the Browse tab
  • Press Go outside button
  • Press the back arrow in the ActionBar
  • Open the Home tab
  • It show Item 1

Expected behavior

It should how the last active view.

Sample project

https://github.com/tujlaky/nativescript-tabs-demo

Additional context

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先,使用列出的 NativeScript、Angular 和 Android Runtime 版本執行 github.com/tujlaky/nativescript-tabs-demo 中的重現應用程式。依照回報的導覽順序操作,並檢查 TabsComponent 與巢狀 outlet 的導覽行為。返回 Home 分頁時顯示上次作用中的檢視,而不是 Item 1,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
angular, typescript
領域
mobile-dev
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。