Browse Source

Fix loading state

Kai Guo 4 years ago
parent
commit
a2ef24d6b6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      windows/ReactNativeWebView/ReactWebViewManager.cpp

+ 1
- 1
windows/ReactNativeWebView/ReactWebViewManager.cpp View File

@@ -98,7 +98,7 @@ namespace winrt::ReactNativeWebView::implementation {
98 98
                     {
99 99
                         WriteProperty(eventDataWriter, L"canGoBack", webView.CanGoBack());
100 100
                         WriteProperty(eventDataWriter, L"canGoForward", webView.CanGoForward());
101
-                        WriteProperty(eventDataWriter, L"loading", false);
101
+                        WriteProperty(eventDataWriter, L"loading", true);
102 102
                         WriteProperty(eventDataWriter, L"target", tag);
103 103
                         WriteProperty(eventDataWriter, L"title", webView.DocumentTitle());
104 104
                         WriteProperty(eventDataWriter, L"url", uri.ToString());