@formio/js 5.0.0-dev.5599.1585c47 → 5.0.0-dev.5603.8554c0d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +3 -0
- package/dist/formio.form.js +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +1 -1
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/Webform.js +1 -1
- package/lib/mjs/Webform.js +1 -1
- package/package.json +1 -1
package/lib/cjs/Webform.js
CHANGED
|
@@ -757,7 +757,7 @@ class Webform extends NestedDataComponent_1.default {
|
|
|
757
757
|
}
|
|
758
758
|
const draft = (0, utils_1.fastCloneDeep)(this.submission);
|
|
759
759
|
draft.state = 'draft';
|
|
760
|
-
if (!this.savingDraft) {
|
|
760
|
+
if (!this.savingDraft && !this.submitting) {
|
|
761
761
|
this.emit('saveDraftBegin');
|
|
762
762
|
this.savingDraft = true;
|
|
763
763
|
this.formio.saveSubmission(draft).then((sub) => {
|
package/lib/mjs/Webform.js
CHANGED
|
@@ -761,7 +761,7 @@ export default class Webform extends NestedDataComponent {
|
|
|
761
761
|
}
|
|
762
762
|
const draft = fastCloneDeep(this.submission);
|
|
763
763
|
draft.state = 'draft';
|
|
764
|
-
if (!this.savingDraft) {
|
|
764
|
+
if (!this.savingDraft && !this.submitting) {
|
|
765
765
|
this.emit('saveDraftBegin');
|
|
766
766
|
this.savingDraft = true;
|
|
767
767
|
this.formio.saveSubmission(draft).then((sub) => {
|