Closed
Description
- Electron Version: 2.0.3
- Operating System (Platform and Version): macOS 10.13.5
Expected Behavior
By default, dropping a file to a webview will trigger electron to open it within the webview.
I expect there is some way to prevent it.
Actual behavior
I can not find a way to prevent it.
To Reproduce
I'm trying to prevent the default drop behavior of Electron by adding the following code to renderer process.
document. = (ev) => {
ev.preventDefault()
ev.stopPropagation();
}
document.body. => {
ev.preventDefault();
ev.stopPropagation();
}
It did work for any non-webview elements, but if I drop the file to a webview, the webview will open the dropped file.