Skip to content

_routerExtensions.back() causes crash after closing modal #1735

Closed

Description

@jeffswitzer

Environment
have only tried on android

Describe the bug
After closing a modal, back navigation via routerExtension doesn't work resulting in a runtime error.

To Reproduce
Open this nativescript playground

  1. using router, navigate from component1 to component2
  2. open a modal inside component2
  3. close the modal
  4. click back to attempt to navigate back from component2 to component1
  5. runtime error says: ERROR TypeError: Cannot read property 'isPageNavigationBack' of undefined

Expected behavior
The back navigation should take you back to component 1

Additional context
This may be related to #1350

Activity

  1. self-assigned this
    on Feb 18, 2019
  2. tsonevn commented on Feb 18, 2019

    @tsonevn
    Contributor

    Hi @jeffswitzer,
    I was able to recreate the issue while using your demo app and will mark this problem as a bug. It seems that there is an issue with the router-outlet. As a workaround, I would suggest using page-router-outlet. Check out the example here.

  3. assigned and unassigned on Feb 19, 2019
  4. ghost removed on Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions