Merge pull request #1417 from dod-ccpo/fix-duplicate-form-submission

Actually fix double submissions
This commit is contained in:
leigh-mil 2020-02-13 13:21:26 -05:00 committed by GitHub
commit 86341186db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,10 @@ export default {
return this.step === this.steps - 1
},
handleSubmit: function(e) {
if (this._onLastPage) {
this.submitted = true
}
if (!this.validateFields() || !this._onLastPage()) {
e.preventDefault()
this.next()