mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-6487 Drag and drop on left hand sidebar leads the picture in the browser (#6315)
This commit is contained in:
committed by
George Goldberg
parent
431d89f5f6
commit
a3f58b4663
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user