Merge pull request #7269 from NativeScript/myankov/merge-release-master

chore: merge release to master
This commit is contained in:
Martin Yankov
2019-05-22 09:31:30 +03:00
committed by GitHub
2 changed files with 7 additions and 5 deletions

View File

@ -350,11 +350,7 @@ export abstract class ViewCommon extends ViewBase implements ViewDefinition {
}
}
if (isAndroid || (parent.viewController && parent.viewController.presentedViewController)) {
that._hideNativeModalView(parent, whenClosedCallback);
} else {
whenClosedCallback();
}
that._hideNativeModalView(parent, whenClosedCallback);
}
};
}

View File

@ -452,6 +452,12 @@ export class View extends ViewCommon {
return;
}
// modal view has already been closed by UI, probably as a popover
if (!parent.viewController.presentedViewController) {
whenClosedCallback();
return;
}
const parentController = parent.viewController;
const animated = (<any>this.viewController).animated;