Fix download click for Firefox < 75 (attach to DOM)

This commit is contained in:
Norbert Renner 2022-06-29 10:01:45 +02:00
parent 74a6bcd92e
commit 4a31ebe112

View file

@ -74,7 +74,11 @@ BR.Export = L.Class.extend({
if (name) {
link.download = name;
}
link.hidden = true;
// in Firefox < 75 click() only works when element is attached to DOM tree
document.body.appendChild(link);
link.click();
link.remove();
},
_exportServer: function (e) {