Skip to content

Commit 5f71cf1

Browse files
committed
Revert "fix macos ci"
This reverts commit bfb983b.
1 parent 2cb1ad8 commit 5f71cf1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

apple/RNCWebViewImpl.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,9 +1265,14 @@ - (void)webView:(WKWebView *)webView runJavaScriptTextInputPanelWithPrompt:(NSSt
12651265
completionHandler([textField stringValue]);
12661266
} else {
12671267
completionHandler(nil);
1268-
}
1269-
}];
1268+
}];
1269+
[alert addAction:cancelAction];
1270+
alert.preferredAction = okAction;
1271+
[[self topViewController] presentViewController:alert animated:YES completion:NULL];
12701272
#endif // !TARGET_OS_OSX
1273+
} else {
1274+
completionHandler(nil);
1275+
}
12711276
}
12721277

12731278
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 150000 /* iOS 15 */

0 commit comments

Comments
 (0)