Fixes forms to submit the internalFormModelProxy instead of the defunct formModel
This commit is contained in:
parent
5c00230bc7
commit
6825d4559b
2
dist/formulate.esm.js
vendored
2
dist/formulate.esm.js
vendored
@ -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) {
|
||||
|
2
dist/formulate.min.js
vendored
2
dist/formulate.min.js
vendored
@ -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) {
|
||||
|
2
dist/formulate.umd.js
vendored
2
dist/formulate.umd.js
vendored
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user