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 摘要。