mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: do not bubble up resize event from webview (#14271)
This commit is contained in:
@@ -131,7 +131,7 @@ class WebViewImpl {
|
||||
}
|
||||
|
||||
onElementResize () {
|
||||
const resizeEvent = new Event('resize', { bubbles: true })
|
||||
const resizeEvent = new Event('resize')
|
||||
resizeEvent.newWidth = this.webviewNode.clientWidth
|
||||
resizeEvent.newHeight = this.webviewNode.clientHeight
|
||||
this.dispatchEvent(resizeEvent)
|
||||
|
||||
Reference in New Issue
Block a user