@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.
@@ -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) => {
@@ -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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5599.1585c47",
3
+ "version": "5.0.0-dev.5603.8554c0d",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {