fix(iOS): Opening alert/confirm on top most of modal dialogs (#7982)

This is fix for the issue #6939 where alert() and confirm() does not work in a modal dialog if it's opened on top of an existing modal dialog.
This commit is contained in:
Shailesh Lolam
2019-11-19 07:36:08 -07:00
committed by Manol Donev
parent bed0565461
commit 60ac4e7a05

View File

@@ -205,6 +205,11 @@ function showUIAlertController(alertController: UIAlertController) {
if (currentView) {
currentView = currentView.modal || currentView;
//get to the top most view controller on the stack
while (currentView && currentView.modal) {
currentView = currentView.modal;
}
let viewController: UIViewController = currentView.ios;
if (viewController.presentedViewController) {