mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
This reverts commit 1565a49f68
.
This commit is contained in:
@@ -159,8 +159,6 @@ export class FormFieldComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
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) {
|
||||
this.field.value = values;
|
||||
this.field.form.values[this.field.id] = values;
|
||||
this.hasFile = true;
|
||||
this.hasFile = this.field.form.values[this.field.id].length > 0;
|
||||
} else {
|
||||
this.field.value = [];
|
||||
this.field.form.values[this.field.id] = [];
|
||||
|
Reference in New Issue
Block a user