Skip to content
Snippets Groups Projects
Commit 488e217b authored by rhenck's avatar rhenck
Browse files

[editor] Fix file upload dialog appearing twice for DropLists

parent a68be5d4
No related branches found
No related tags found
No related merge requests found
...@@ -11,8 +11,7 @@ import { DragNDropValueObject } from '../../../../../common/interfaces/elements' ...@@ -11,8 +11,7 @@ import { DragNDropValueObject } from '../../../../../common/interfaces/elements'
<mat-label>{{'text' | translate }}</mat-label> <mat-label>{{'text' | translate }}</mat-label>
<input #textField matInput type="text" [value]="data.value.stringValue"> <input #textField matInput type="text" [value]="data.value.stringValue">
</mat-form-field> </mat-form-field>
<input #imageUpload type="file" hidden (click)="loadImage()"> <button mat-raised-button (click)="loadImage()">{{ 'loadImage' | translate }}</button>
<button mat-raised-button (click)="imageUpload.click()">{{ 'loadImage' | translate }}</button>
<button mat-raised-button (click)="imgSrc = undefined">{{ 'removeImage' | translate }}</button> <button mat-raised-button (click)="imgSrc = undefined">{{ 'removeImage' | translate }}</button>
<img [src]="imgSrc" <img [src]="imgSrc"
[style.object-fit]="'scale-down'" [style.object-fit]="'scale-down'"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment