diff --git a/projects/ajsf-core/src/lib/json-schema-form.service.ts b/projects/ajsf-core/src/lib/json-schema-form.service.ts index a20eaa77..dfe2897c 100755 --- a/projects/ajsf-core/src/lib/json-schema-form.service.ts +++ b/projects/ajsf-core/src/lib/json-schema-form.service.ts @@ -544,6 +544,10 @@ export class JsonSchemaFormService { ctx.formControl = this.getFormControl(ctx); ctx.boundControl = bind && !!ctx.formControl; if (ctx.formControl) { + if (ctx.options.enum && ctx.formControl.value === null) { + ctx.formControl.value = ''; + } + ctx.controlName = this.getFormControlName(ctx); ctx.controlValue = ctx.formControl.value; ctx.controlDisabled = ctx.formControl.disabled; diff --git a/projects/ajsf-core/src/lib/shared/layout.functions.ts b/projects/ajsf-core/src/lib/shared/layout.functions.ts index 59fc2afc..f5d47654 100755 --- a/projects/ajsf-core/src/lib/shared/layout.functions.ts +++ b/projects/ajsf-core/src/lib/shared/layout.functions.ts @@ -1062,7 +1062,7 @@ export function buildTitleMap( } } if (!fieldRequired && !hasEmptyValue) { - newTitleMap.unshift({ name: 'None', value: null }); + newTitleMap.unshift({ name: 'None', value: '' }); } return newTitleMap; }