From 6825d4559b01c52f2f78e074054bf842db62f225 Mon Sep 17 00:00:00 2001 From: Justin Schroeder Date: Tue, 28 Jan 2020 17:24:28 -0500 Subject: [PATCH] Fixes forms to submit the internalFormModelProxy instead of the defunct formModel --- dist/formulate.esm.js | 2 +- dist/formulate.min.js | 2 +- dist/formulate.umd.js | 2 +- src/FormulateForm.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/formulate.esm.js b/dist/formulate.esm.js index 771499b..de49d67 100644 --- a/dist/formulate.esm.js +++ b/dist/formulate.esm.js @@ -1638,7 +1638,7 @@ var script$1 = { formSubmitted: function formSubmitted () { // perform validation here this.showErrors(); - this.$emit('submit', this.formModel); + this.$emit('submit', this.internalFormModelProxy); }, showErrors: function showErrors () { for (var fieldName in this.registry) { diff --git a/dist/formulate.min.js b/dist/formulate.min.js index 896df71..32da806 100644 --- a/dist/formulate.min.js +++ b/dist/formulate.min.js @@ -1641,7 +1641,7 @@ var Formulate = (function (exports, isUrl, nanoid, isPlainObject) { formSubmitted: function formSubmitted () { // perform validation here this.showErrors(); - this.$emit('submit', this.formModel); + this.$emit('submit', this.internalFormModelProxy); }, showErrors: function showErrors () { for (var fieldName in this.registry) { diff --git a/dist/formulate.umd.js b/dist/formulate.umd.js index b4c1591..b5a1dc0 100644 --- a/dist/formulate.umd.js +++ b/dist/formulate.umd.js @@ -1644,7 +1644,7 @@ formSubmitted: function formSubmitted () { // perform validation here this.showErrors(); - this.$emit('submit', this.formModel); + this.$emit('submit', this.internalFormModelProxy); }, showErrors: function showErrors () { for (var fieldName in this.registry) { diff --git a/src/FormulateForm.vue b/src/FormulateForm.vue index c056de7..b66189c 100644 --- a/src/FormulateForm.vue +++ b/src/FormulateForm.vue @@ -95,7 +95,7 @@ export default { formSubmitted () { // perform validation here this.showErrors() - this.$emit('submit', this.formModel) + this.$emit('submit', this.internalFormModelProxy) }, showErrors () { for (const fieldName in this.registry) {