We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55e9575 commit a581ce2Copy full SHA for a581ce2
packages/ui/src/lib/form/form.service.ts
@@ -28,9 +28,11 @@ export class FormService {
28
.filter((field) => this.shouldBePartOfForm(field, form))
29
.forEach((field) => {
30
const validators = this.getValidators(field);
31
+ let value = form.getValue(field.property);
32
+ value = value === undefined ? null : value;
33
controls[field.property] = new FormControl(
34
{
- value: form.getValue(field.property),
35
+ value,
36
disabled: this.isReadOnly(field, form),
37
},
38
validators,
0 commit comments