mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-810] fix default value radio button (#1975)
This commit is contained in:
committed by
Denys Vuika
parent
c1e093d543
commit
2167fcb325
@@ -292,8 +292,6 @@ export class FormFieldModel extends FormWidgetModel {
|
|||||||
let rbEntry: FormFieldOption[] = this.options.filter(opt => opt.id === this.value);
|
let rbEntry: FormFieldOption[] = this.options.filter(opt => opt.id === this.value);
|
||||||
if (rbEntry.length > 0) {
|
if (rbEntry.length > 0) {
|
||||||
this.form.values[this.id] = rbEntry[0];
|
this.form.values[this.id] = rbEntry[0];
|
||||||
} else if (this.options.length > 0) {
|
|
||||||
this.form.values[this.id] = this.options[0];
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case FormFieldTypes.UPLOAD:
|
case FormFieldTypes.UPLOAD:
|
||||||
|
|||||||
Reference in New Issue
Block a user