Browse Source

fix: do not bubble up resize event from webview (#14272)

Cheng Zhao 6 years ago
parent
commit
760c2327b4
1 changed files with 1 additions and 3 deletions
  1. 1 3
      lib/renderer/web-view/web-view.js

+ 1 - 3
lib/renderer/web-view/web-view.js

@@ -145,9 +145,7 @@ class WebViewImpl {
 
   onElementResize (newSize) {
     // Dispatch the 'resize' event.
-    const resizeEvent = new Event('resize', {
-      bubbles: true
-    })
+    const resizeEvent = new Event('resize')
 
     // Using client size values, because when a webview is transformed `newSize`
     // is incorrect