Skip to content

Commit bfb983b

Browse files
committed
fix macos ci
1 parent 1e57fca commit bfb983b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

apple/RNCWebViewImpl.m

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

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

0 commit comments

Comments
 (0)