fixed dnd after css changes

This commit is contained in:
Danny Coates 2018-02-19 14:29:13 -08:00
parent 029633f3d3
commit ad77fc20c6
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
6 changed files with 15 additions and 14 deletions

View file

@ -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;