From 488e217bc66ade0e2687edccfba2569b464950ee Mon Sep 17 00:00:00 2001 From: rhenck <richard.henck@iqb.hu-berlin.de> Date: Fri, 4 Mar 2022 14:21:44 +0100 Subject: [PATCH] [editor] Fix file upload dialog appearing twice for DropLists --- .../dialogs/drop-list-option-edit-dialog.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/editor/src/app/components/dialogs/drop-list-option-edit-dialog.component.ts b/projects/editor/src/app/components/dialogs/drop-list-option-edit-dialog.component.ts index 0ca99587d..031d97ab0 100644 --- a/projects/editor/src/app/components/dialogs/drop-list-option-edit-dialog.component.ts +++ b/projects/editor/src/app/components/dialogs/drop-list-option-edit-dialog.component.ts @@ -11,8 +11,7 @@ import { DragNDropValueObject } from '../../../../../common/interfaces/elements' <mat-label>{{'text' | translate }}</mat-label> <input #textField matInput type="text" [value]="data.value.stringValue"> </mat-form-field> - <input #imageUpload type="file" hidden (click)="loadImage()"> - <button mat-raised-button (click)="imageUpload.click()">{{ 'loadImage' | translate }}</button> + <button mat-raised-button (click)="loadImage()">{{ 'loadImage' | translate }}</button> <button mat-raised-button (click)="imgSrc = undefined">{{ 'removeImage' | translate }}</button> <img [src]="imgSrc" [style.object-fit]="'scale-down'" -- GitLab