Skip to content

Commit

Permalink
fix(ajsf/core): json-schema-form service: updateValue: fix validation
Browse files Browse the repository at this point in the history
updateValue: mark as dirty before setting the value in order to run validation
Fixes hamzahamidi#315
  • Loading branch information
E-Fir committed Nov 8, 2022
1 parent 587dbed commit 27e92ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ajsf-core/src/lib/json-schema-form.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,8 @@ export class JsonSchemaFormService {
// Set value of current control
ctx.controlValue = value;
if (ctx.boundControl) {
ctx.formControl.setValue(value);
ctx.formControl.markAsDirty();
ctx.formControl.setValue(value);
}
ctx.layoutNode.value = value;

Expand Down

0 comments on commit 27e92ad

Please sign in to comment.