Skip to content

Commit 4c6cae9

Browse files
[DURACOM-157] Multiple uploaders in the same page don't work
1 parent 7ebdcd3 commit 4c6cae9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/shared/upload/uploader/uploader.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
<span>
2323
<i class="fas fa-upload" aria-hidden="true"></i>
2424
{{dropMsg | translate}}{{'uploader.or' | translate}}
25-
<label for="inputFileUploader" class="btn btn-link m-0 p-0 ml-1" tabindex="0" (keyup.enter)="$event.stopImmediatePropagation(); fileInput.click()">
25+
<label for="inputFileUploader-{{uploaderId}}" class="btn btn-link m-0 p-0 ml-1" tabindex="0" (keyup.enter)="$event.stopImmediatePropagation(); fileInput.click()">
2626
<span role="button" [attr.aria-label]="'uploader.browse' | translate">{{'uploader.browse' | translate}}</span>
2727
</label>
28-
<input #fileInput id="inputFileUploader" class="d-none" type="file" ng2FileSelect [uploader]="uploader" multiple tabindex="0" />
28+
<input #fileInput id="inputFileUploader-{{uploaderId}}" class="d-none" type="file" ng2FileSelect [uploader]="uploader" multiple tabindex="0" />
2929
</span>
3030
</div>
3131
<div *ngIf="(isOverBaseDropZone | async) || uploader?.queue?.length !== 0">

0 commit comments

Comments
 (0)