Skip to content

Commit

Permalink
Revert "Reduce buildFormData calls"
Browse files Browse the repository at this point in the history
This reverts commit 34c06de.

We cannot use this.onChange here because on initial load there would be no
change in the formData and the onChange event would not be triggered.
  • Loading branch information
davelopez committed Nov 13, 2024
1 parent ec7db4a commit c129e57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/components/Form/FormDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ export default {
},
created() {
this.onCloneInputs();
this.onChange();
// build flat formData that is ready to be submitted
this.formData = this.buildFormData();
// emit back to parent, so that parent has submittable data
this.$emit("onChange", this.formData);
// highlight initial warnings
this.onWarnings();
// highlight initial errors
Expand Down

0 comments on commit c129e57

Please sign in to comment.