From 6868af11cd3ca62064a71d0f281f30b1a5ec9838 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Mon, 5 Nov 2018 20:55:26 -0800 Subject: [PATCH] add click handler to whole empty area --- app/ui/archiveTile.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/ui/archiveTile.js b/app/ui/archiveTile.js index 881f4462..eb1232eb 100644 --- a/app/ui/archiveTile.js +++ b/app/ui/archiveTile.js @@ -288,7 +288,8 @@ module.exports.uploading = function(state, emit) { module.exports.empty = function(state, emit) { return html` -
+
document.getElementById('file-upload').click()}>
${state.translate( 'uploadDropDragMessage' @@ -301,7 +302,8 @@ module.exports.empty = function(state, emit) { class="hidden" type="file" multiple - onchange=${add} /> + onchange=${add} + onclick=${e => e.stopPropagation()} />