Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(location-strategy): crash on going back with router-outlet after closing modal #1748

Merged
merged 3 commits into from
Feb 26, 2019

Conversation

ADjenkov
Copy link
Contributor

@ADjenkov ADjenkov commented Feb 21, 2019

Modify location-strategy to better handle <router-outlets> and modal views:

  • _beginModalNavigation method shouldn't set currentOutlet to null when no outlet for the given Frame found.

  • clearOutlet method: Do not remove outlet, from outlets collection, who belongs to <router-outlet> since it doesn't have any frames[]

  • findOutlet method should always respect the current _modalNavigationDepth when searching for outlet, since there could be 2 or more identical outlets on different modal views ( primary-> (modal:primary)->(modal2->primary))

  • make findOutletByModal private, since it won't be used outside location-strategy anymore

Fix #1735

@ADjenkov ADjenkov self-assigned this Feb 21, 2019
@ghost ghost added the in progress label Feb 21, 2019
@ADjenkov
Copy link
Contributor Author

test package_version#latest

@ADjenkov
Copy link
Contributor Author

test package_version#latest

@cla-bot
Copy link

cla-bot bot commented Feb 26, 2019

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: ADjenkov.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@cla-bot cla-bot bot removed the in progress label Feb 26, 2019
@ghost ghost added the in progress label Feb 26, 2019
@ADjenkov
Copy link
Contributor Author

test package_version#latest

@ADjenkov ADjenkov merged commit 0ed7de6 into release Feb 26, 2019
@ghost ghost removed the in progress label Feb 26, 2019
@ADjenkov ADjenkov deleted the djenkov/router-outlet-fix branch February 26, 2019 11:31
dottodot pushed a commit to dottodot/nativescript-angular that referenced this pull request Mar 16, 2019
* master:
  exclude files from api ref build
  NS Angular api ref build script
  fix(location-strategy): crash on going back with router-outlet after closing modal (NativeScript#1748)
  release: cut the 7.2.2 release (NativeScript#1742)
  fix(router): routing services should be provided in forRoot only (NativeScript#1729)
  fix(list-view): Add support for default item template
  fix(list-view): add support for "defailtTemplate"
  docs: cut the 7.2.1 release
  fix: Router tracing does not work with webpack
  chore: bump package version to 7.2.1
  chore: bump package versino tp 7.3.0
  test: Add tests for nested primary outlets
  fix(location-strategy): extend support for nested primary outlets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants