From 7abbc60e173d314a638bd4f1875e7b11c649da27 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Tue, 29 Aug 2017 11:36:40 -0700 Subject: [PATCH] fixes #546 drag effect --- app/templates/welcome.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/templates/welcome.js b/app/templates/welcome.js index d15270ac..27077b3c 100644 --- a/app/templates/welcome.js +++ b/app/templates/welcome.js @@ -33,11 +33,13 @@ module.exports = function(state, emit) { `; function dragover(event) { - event.target.classList.add('ondrag'); + const div = document.querySelector('.upload-window'); + div.classList.add('ondrag'); } function dragleave(event) { - event.target.classList.remove('ondrag'); + const div = document.querySelector('.upload-window'); + div.classList.remove('ondrag'); } async function upload(event) {