diff --git a/src/Controls/src/Core/WebView.cs b/src/Controls/src/Core/WebView.cs index 58e2ae91a26d..ae41abb07993 100644 --- a/src/Controls/src/Core/WebView.cs +++ b/src/Controls/src/Core/WebView.cs @@ -125,7 +125,7 @@ public async Task EvaluateJavaScriptAsync(string script) string result; - if (_evaluateJavaScriptRequested?.GetInvocationList().Length == 0) + if (_evaluateJavaScriptRequested != null) // With Handlers we don't use events, if is null we are using a renderer and a handler otherwise. { // This is the WebViewRenderer subscribing to these requests; the handler stuff // doesn't use them.