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 0ca99587d7fa54c5a6c6b408424db56665ef9366..031d97ab0688fc43d693bd3a67163ef6d3ce8e4f 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'"