mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
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:
committed by
Manol Donev
parent
bed0565461
commit
60ac4e7a05
@@ -205,6 +205,11 @@ function showUIAlertController(alertController: UIAlertController) {
|
|||||||
if (currentView) {
|
if (currentView) {
|
||||||
currentView = currentView.modal || 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;
|
let viewController: UIViewController = currentView.ios;
|
||||||
|
|
||||||
if (viewController.presentedViewController) {
|
if (viewController.presentedViewController) {
|
||||||
|
|||||||
Reference in New Issue
Block a user