fix(android): parallel navigations should not be triggered (#6275)

This commit is contained in:
Manol Donev
2018-09-18 11:25:31 +03:00
committed by GitHub
parent 1db1e81174
commit 6c9fa16f6e
2 changed files with 2 additions and 2 deletions

View File

@@ -504,7 +504,7 @@ export class View extends ViewCommon {
public getLocationRelativeTo(otherView: ViewCommon): Point {
if (!this.nativeViewProtected || !this.nativeViewProtected.getWindowToken() ||
!otherView.nativeViewProtected || !otherView.nativeViewProtected.getWindowToken() ||
!otherView || !otherView.nativeViewProtected || !otherView.nativeViewProtected.getWindowToken() ||
this.nativeViewProtected.getWindowToken() !== otherView.nativeViewProtected.getWindowToken()) {
return undefined;
}

View File

@@ -138,7 +138,7 @@ export class Frame extends FrameBase {
// In this case call _navigateCore in order to recreate the current fragment.
// Don't call navigate because it will fire navigation events.
// As JS instances are alive it is already done for the current page.
if (!this.isLoaded || !this._attachedToWindow) {
if (!this.isLoaded || this._executingEntry || !this._attachedToWindow) {
return;
}