angular icon indicating copy to clipboard operation
angular copied to clipboard

angular 14+ modal back navigation issue

Open BalintVegh opened this issue 2 years ago • 1 comments

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

BalintVegh avatar Feb 01 '23 13:02 BalintVegh

I'm experiencing the same issue whenever a modal is opened using the ModalDialogParams library. Did you find a solution?

SeanKelly369 avatar Feb 12 '23 01:02 SeanKelly369