PLT-6487 Drag and drop on left hand sidebar leads the picture in the browser (#6315)

This commit is contained in:
David Meza
2017-05-09 06:56:39 -05:00
committed by George Goldberg
parent 431d89f5f6
commit a3f58b4663

View File

@@ -101,6 +101,17 @@ function preRenderSetup(callwhendone) {
} else {
I18n.safariFix(afterIntl);
}
// Prevent drag and drop files from navigating away from the app
document.addEventListener('drop', (e) => {
e.preventDefault();
e.stopPropagation();
});
document.addEventListener('dragover', (e) => {
e.preventDefault();
e.stopPropagation();
});
}
function renderRootComponent() {