mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-13 20:00:05 +01:00
Fixed buggy file upload container (#1841)
Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
This commit is contained in:
@@ -114,10 +114,10 @@ function setInputStepInit() {
|
||||
dropzone[0].addEventListener('drop', handleFile, false);
|
||||
|
||||
dropzone.on('dragover', function onDragover(e) {
|
||||
e.stopPropagation();
|
||||
dropzone.addClass('hover');
|
||||
e.preventDefault();
|
||||
e.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy.
|
||||
}, false);
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
dropzone.on('dragenter', function onDragEnter(e) {
|
||||
dropzone.addClass('hover');
|
||||
@@ -127,6 +127,11 @@ function setInputStepInit() {
|
||||
dropzone.removeClass('hover');
|
||||
});
|
||||
|
||||
dropzone.on('drop', function onDrop(e) {
|
||||
dropzone.removeClass('hover');
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user