We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb2acac commit c5537bfCopy full SHA for c5537bf
projects/ajsf-core/src/lib/json-schema-form.service.ts
@@ -544,6 +544,10 @@ export class JsonSchemaFormService {
544
ctx.formControl = this.getFormControl(ctx);
545
ctx.boundControl = bind && !!ctx.formControl;
546
if (ctx.formControl) {
547
+ if (ctx.options.enum && ctx.formControl.value === null) {
548
+ ctx.formControl.value = '';
549
+ }
550
+
551
ctx.controlName = this.getFormControlName(ctx);
552
ctx.controlValue = ctx.formControl.value;
553
ctx.controlDisabled = ctx.formControl.disabled;
0 commit comments