mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[ACA-3286] User gets error when removing the attached file (#5735)
This commit is contained in:
parent
84607de277
commit
1565a49f68
@ -159,6 +159,8 @@ export class FormFieldComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
focusToggle() {
|
focusToggle() {
|
||||||
|
setTimeout(() => {
|
||||||
this.focus = !this.focus;
|
this.focus = !this.focus;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ export class UploadCloudWidgetComponent extends WidgetComponent implements OnIni
|
|||||||
if (values && values.length > 0) {
|
if (values && values.length > 0) {
|
||||||
this.field.value = values;
|
this.field.value = values;
|
||||||
this.field.form.values[this.field.id] = values;
|
this.field.form.values[this.field.id] = values;
|
||||||
this.hasFile = this.field.form.values[this.field.id].length > 0;
|
this.hasFile = true;
|
||||||
} else {
|
} else {
|
||||||
this.field.value = [];
|
this.field.value = [];
|
||||||
this.field.form.values[this.field.id] = [];
|
this.field.form.values[this.field.id] = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user