fixed dnd after css changes
This commit is contained in:
parent
029633f3d3
commit
ad77fc20c6
6 changed files with 15 additions and 14 deletions
|
@ -11,7 +11,9 @@ export default function(state, emitter) {
|
|||
document.body.addEventListener('drop', event => {
|
||||
if (state.route === '/' && !state.uploading) {
|
||||
event.preventDefault();
|
||||
document.querySelector('.upload-window').classList.remove('ondrag');
|
||||
document
|
||||
.querySelector('.uploadArea')
|
||||
.classList.remove('uploadArea--dragging');
|
||||
const target = event.dataTransfer;
|
||||
if (target.files.length === 0) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue