From 4450cb4fdc16cbd22f25fa358fa2bacb6dcf82b8 Mon Sep 17 00:00:00 2001 From: Alain CAO Date: Thu, 1 Nov 2018 19:15:42 +0100 Subject: [PATCH] Fixed IE11 download page link not working 'click()' function call doesn't open the link because the element is not added to the DOM --- app/src/Download.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/Download.vue b/app/src/Download.vue index c05d496..a2693cd 100644 --- a/app/src/Download.vue +++ b/app/src/Download.vue @@ -120,7 +120,10 @@ const aEl = document.createElement('a'); aEl.setAttribute('href', file.url); aEl.setAttribute('download', file.metadata.name); + aEl.style.display = 'none'; + document.body.appendChild(aEl); aEl.click(); + aEl.remove(); file.downloaded = true; },