handleCancelSubmit method, which falsifies readyToSubmit

This commit is contained in:
Andrew Croce
2018-10-04 14:11:22 -04:00
parent aba2eb28ed
commit cb3947962c
2 changed files with 6 additions and 1 deletions

View File

@@ -94,6 +94,11 @@ export default {
}
},
handleCancelSubmit: function () {
this.readyToSubmit = false
this.closeModal(this.modalName)
},
validateAndOpenModal: function (modalName) {
let isValid = this.$children.reduce((previous, newVal) => {
// display textInput error if it is not valid