NativeScript / NativeScript/angular

angular 14+ modal back navigation issue

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

還沒有人認領這個 Issue。

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

描述

Environment

  • CLI: 8.4.0
  • Cross-platform modules: 8.4.0
  • Android Runtime: 8.4.0
  • iOS Runtime: 8.4.1
  • NativeScript-Angular: 14+
  • Angular: 14+

After closing a modal (contains page-router-outlet) in the second screen and navigating back to Home Screen, then automatically runs a new Home Screen navigation.

I checked with the navigationTo event: it fires like forward navigation too.
navigatedTo event in Home Screen after closing modal and navigating back (event fires twice):

  1. isBackNavigation: false
  2. isBackNavigation: true

This happens on android and on ios.
The latest version of Angular 13 and @nativescript/angular 13 is working fine, but nothing above it.

Sample project
https://github.com/BalintVegh/ns-angular-modal-issue

貢獻指南

開啟貢獻指南

從這裡開始

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

研究方向

從連結的範例專案開始,在 Angular 14+ 和 NativeScript-Angular 14+ 上重現關閉模態框、返回 Home Screen 以及導覽事件重複的問題。將其行為與 Angular 13 進行比較;當返回導覽在 Android 和 iOS 上不再觸發額外的 Home Screen 導覽或重複事件時,即可認為該問題已解決。

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

評估

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

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

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