From 855394628e60f27eb813157918e26f1cf3f54b9c Mon Sep 17 00:00:00 2001 From: Niklas Merz Date: Tue, 24 Sep 2019 16:28:07 +0200 Subject: [PATCH] Fix unresponsive main window after hide --- src/ios/CDVWKInAppBrowser.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ios/CDVWKInAppBrowser.m b/src/ios/CDVWKInAppBrowser.m index 96d9fa9..f937714 100644 --- a/src/ios/CDVWKInAppBrowser.m +++ b/src/ios/CDVWKInAppBrowser.m @@ -340,6 +340,10 @@ static CDVWKInAppBrowser* instance = nil; - (void)hide:(CDVInvokedUrlCommand*)command { + // Set tmpWindow to hidden to make main webview responsive to touch again + // https://stackoverflow.com/questions/4544489/how-to-remove-a-uiwindow + self->tmpWindow.hidden = YES; + if (self.inAppBrowserViewController == nil) { NSLog(@"Tried to hide IAB after it was closed."); return;