1
0
mirror of synced 2024-11-25 14:56:03 +03:00

Fixes forms to submit the internalFormModelProxy instead of the defunct formModel

This commit is contained in:
Justin Schroeder 2020-01-28 17:24:28 -05:00
parent 5c00230bc7
commit 6825d4559b
4 changed files with 4 additions and 4 deletions

View File

@ -1638,7 +1638,7 @@ var script$1 = {
formSubmitted: function formSubmitted () { formSubmitted: function formSubmitted () {
// perform validation here // perform validation here
this.showErrors(); this.showErrors();
this.$emit('submit', this.formModel); this.$emit('submit', this.internalFormModelProxy);
}, },
showErrors: function showErrors () { showErrors: function showErrors () {
for (var fieldName in this.registry) { for (var fieldName in this.registry) {

View File

@ -1641,7 +1641,7 @@ var Formulate = (function (exports, isUrl, nanoid, isPlainObject) {
formSubmitted: function formSubmitted () { formSubmitted: function formSubmitted () {
// perform validation here // perform validation here
this.showErrors(); this.showErrors();
this.$emit('submit', this.formModel); this.$emit('submit', this.internalFormModelProxy);
}, },
showErrors: function showErrors () { showErrors: function showErrors () {
for (var fieldName in this.registry) { for (var fieldName in this.registry) {

View File

@ -1644,7 +1644,7 @@
formSubmitted: function formSubmitted () { formSubmitted: function formSubmitted () {
// perform validation here // perform validation here
this.showErrors(); this.showErrors();
this.$emit('submit', this.formModel); this.$emit('submit', this.internalFormModelProxy);
}, },
showErrors: function showErrors () { showErrors: function showErrors () {
for (var fieldName in this.registry) { for (var fieldName in this.registry) {

View File

@ -95,7 +95,7 @@ export default {
formSubmitted () { formSubmitted () {
// perform validation here // perform validation here
this.showErrors() this.showErrors()
this.$emit('submit', this.formModel) this.$emit('submit', this.internalFormModelProxy)
}, },
showErrors () { showErrors () {
for (const fieldName in this.registry) { for (const fieldName in this.registry) {