Skip to content

Commit

Permalink
Merge pull request #1302 from valtimo-platform/next-minor
Browse files Browse the repository at this point in the history
story/fix-fvm-updating fix form view model not updating (#1301)
  • Loading branch information
ThomasMinkeRitense authored Dec 13, 2024
2 parents cba3702 + 747ab98 commit 8ea28be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
[submission]="obs.submission"
[form]="obs.form"
[options]="obs.formioOptions"
[refresh]="refreshForm"
(submit)="onSubmit($event)"
(change)="onChange($event)"
(focusout)="onBlur($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export class FormViewModelComponent implements OnInit {
@Output() formSubmit = new EventEmitter<any>();

public errors: string[] = [];
public refreshForm = new EventEmitter();

private _preventNextPage = false;
private _preventPreviousPage = false;
Expand Down Expand Up @@ -324,6 +325,7 @@ export class FormViewModelComponent implements OnInit {
submission.data = viewModel;
this.submission$.next(submission);
this.handlePageChange();
this.refreshForm.emit({submission: submission});
this.loading$.next(false);
this.errors = [];
},
Expand Down Expand Up @@ -386,6 +388,7 @@ export class FormViewModelComponent implements OnInit {
submission.data = viewModel;
this.submission$.next(submission);
this.handlePageChange();
this.refreshForm.emit({submission: submission});
this.loading$.next(false);
this.errors = [];
},
Expand Down

0 comments on commit 8ea28be

Please sign in to comment.