Skip to content

Commit b831209

Browse files
committed
Fixed an issue where the very last element in a complex field has a show_condition that doesn't get evaluated if that element has no value to trigger a form change event. So it's now trigger a change event on the complexGroup that contains the various controls.
1 parent fa3fea3 commit b831209

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/shared/components/palette/complex/write-complex-field.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export class WriteComplexFieldComponent extends AbstractFieldWriteComponent impl
4848
// Add validators for the complex field.
4949
this.formValidatorsService.addValidators(this.caseField, this.complexGroup);
5050
this.setupFields();
51+
this.complexGroup.updateValueAndValidity({ emitEvent: true });
5152
}
5253

5354
buildField(caseField: CaseField): CaseField {

0 commit comments

Comments
 (0)