dulibrarytech / digitaldu-frontend

Digital Collections DU front end
Apache License 2.0
3 stars 0 forks source link

Firefox not registering button clicks - file download button #382

Closed jrynhart closed 2 years ago

jrynhart commented 2 years ago

Tested the route, backend does not receive the download request. This works on Chrome/Safari

jrynhart commented 2 years ago

Downloader uses dynamic link generation and initiates click event on the link, to avoid using a request library for browser download Updated the dynamic link to be appended temporarily to the DOM, then removed after the click is initited. Firefox requires a link to be part of the DOM before a click event is allowed, Chrome and Safari do not