From 70c970a2026442106358ffc504251c283528e402 Mon Sep 17 00:00:00 2001 From: Hanna Kurban Date: Thu, 16 May 2024 11:25:10 +0300 Subject: [PATCH] FIO-8342 fixed triggering saveDraft after submission form --- src/Webform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Webform.js b/src/Webform.js index 48de614951..bfadb49ea3 100644 --- a/src/Webform.js +++ b/src/Webform.js @@ -860,7 +860,7 @@ export default class Webform extends NestedDataComponent { const draft = fastCloneDeep(this.submission); draft.state = 'draft'; - if (!this.savingDraft) { + if (!this.savingDraft && !this.submitting) { this.emit('saveDraftBegin'); this.savingDraft = true; this.formio.saveSubmission(draft).then((sub) => {