Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Solutions?
1) Not sure if adding an and condition for !data.draft would solve it as it probably is always true when editing a draft.

2) Failing a submission should set the data.data.submit flag back to false?

The following seems to prevent the behavior from occuring as a temporary solution until Jason rewrites event subscription:

...

var isValid = form.checkValidity(form.submission.data);

if(isValid) {
data.submit = true;
form.submit();
} else {
form.submit();
data.submit = false;
}

nfeli - Discusses the issue in discord on chefs-tldr

...