linagora / esn-frontend-inbox

Webmail SPA for the OpenPaaS Suite - https://open-paas.org
Other
11 stars 19 forks source link

Prompted to leave page when opening attachment #556

Closed alagane closed 2 years ago

alagane commented 2 years ago

Given I am reading a mail with attachments and I have a composer openened (also minimize) with new content written in it. When I click on an attachment What happens I am prompted asking if I want to leave the page with unsaved data What should happen I should not be prompted because I am not leaving the page

The solution is to add a download attribute on the anchor tag, to tell the browser I am downloading a file and not leaving the page. (see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a) The file to modify is attachment-download-action.pug.

fabienmoyon commented 2 years ago

introduce in https://github.com/linagora/esn-frontend-inbox/issues/433

alagane commented 2 years ago

The pull request does not fix the bug.