#8143 - form-field.component.html: [Bug fix] Updated check to set disabled attribute or not in the button.

This commit is contained in:
Konstantina Galouni 2022-10-12 16:22:58 +03:00
parent b018dd42db
commit dc197a5abc
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@
</div>
<div class="col-12 d-flex justify-content-center attach-btn">
<button *ngIf="!form.value.value || filesToUpload" mat-button (click)="drop.showFileSelector()" type="button" class="attach-file-btn"
[disabled]="form.value.value">
[disabled]="!!form.value.value">
<mat-icon class="mr-2">upload</mat-icon>
<mat-label>{{ (form.get('data').value.label | translate)}}</mat-label>
</button>