We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cb1ad8 commit 5f71cf1Copy full SHA for 5f71cf1
apple/RNCWebViewImpl.m
@@ -1265,9 +1265,14 @@ - (void)webView:(WKWebView *)webView runJavaScriptTextInputPanelWithPrompt:(NSSt
1265
completionHandler([textField stringValue]);
1266
} else {
1267
completionHandler(nil);
1268
- }
1269
- }];
+ }];
+ [alert addAction:cancelAction];
1270
+ alert.preferredAction = okAction;
1271
+ [[self topViewController] presentViewController:alert animated:YES completion:NULL];
1272
#endif // !TARGET_OS_OSX
1273
+ } else {
1274
+ completionHandler(nil);
1275
+ }
1276
}
1277
1278
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 150000 /* iOS 15 */
0 commit comments