@hubsync/esign-web-sdk 6.5.12 → 6.5.13

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.
@@ -577,6 +577,13 @@ const VerdocsSign = class {
577
577
  this.focusField(fields[0]);
578
578
  return;
579
579
  }
580
+ // If current field is optional and unfilled, treat "Next" as skipping it
581
+ const currentField = fields.find(f => f.name === this.focusedField);
582
+ if (currentField && !currentField.required && !this.isFieldFilledForNav(currentField, this.getRecipientFields())) {
583
+ if (!this.skippedOptionalFields.includes(currentField.name)) {
584
+ this.skippedOptionalFields = [...this.skippedOptionalFields, currentField.name];
585
+ }
586
+ }
580
587
  const nextField = this.getNextFieldFromList(fields);
581
588
  this.focusField(nextField);
582
589
  }