Skip to content

Commit

Permalink
file: fix downloading issue after the 2nd click
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <[email protected]>
  • Loading branch information
pbek committed Feb 17, 2025
1 parent ddac491 commit 44769e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/dbp-cabinet-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -917,11 +917,11 @@ export class CabinetFile extends ScopedElementsMixin(DBPCabinetLitElement) {
Replace Document
${this.getMiniSpinnerHtml(id)}
</button>
<select id="export-select" class="dropdown-menu" @change="${this.downloadFile}" ?disabled="${!file}">
<select id="export-select" class="dropdown-menu" ?disabled="${!file}">
<option value="-" disabled="" selected="">
${i18n.t('doc-modal-download-document')}
</option>
<option value="document-only">${i18n.t('doc-modal-document-only')}</option>
<option value="document-only" @click="${this.downloadFile}">${i18n.t('doc-modal-document-only')}</option>
<option value="only-data" disabled="">${i18n.t('doc-modal-only-data')}</option>
<option value="all" disabled="">${i18n.t('doc-modal-all')}</option>
</select>
Expand Down

0 comments on commit 44769e6

Please sign in to comment.