@hubsync/esign-web-sdk 6.5.7 → 6.5.8

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.
@@ -598,8 +598,11 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
598
598
  const requiredFields = fillableFields.filter(field => !!field.required);
599
599
  const allRequiredFieldsSubmitted = requiredFields.every(field => this.isFieldValidForRecipient(field, recipientFields));
600
600
  const visitedFieldNames = new Set([...this.visitedFieldNames, ...extraVisitedFieldNames]);
601
- const allFieldsVisited = fillableFields.every(field => visitedFieldNames.has(field.name));
602
- const canSubmit = allRequiredFieldsSubmitted && allFieldsVisited;
601
+ // A field is considered "handled" if it's visited OR if it's an optional field that was skipped OR if it's already filled
602
+ const allFieldsHandled = fillableFields.every(field => visitedFieldNames.has(field.name) ||
603
+ this.skippedOptionalFields.includes(field.name) ||
604
+ this.isFieldFilledForNav(field, recipientFields));
605
+ const canSubmit = allRequiredFieldsSubmitted && allFieldsHandled;
603
606
  if (canSubmit) {
604
607
  this.nextButtonLabel = 'Finish';
605
608
  if (!this.nextSubmits) {