Skip to content

Commit

Permalink
FIO-8342 fixed triggering saveDraft after submission form (#5600)
Browse files Browse the repository at this point in the history
  • Loading branch information
HannaKurban authored May 16, 2024
1 parent eada1c2 commit ecc902f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Webform.js
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,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) => {
Expand Down

0 comments on commit ecc902f

Please sign in to comment.