@hubsync/esign-web-sdk 6.9.30 → 6.9.31

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.
@@ -518,7 +518,14 @@ export class VerdocsSign {
518
518
  case 'dropdown':
519
519
  // TODO: Set prepared to false server-side.
520
520
  console.log('Saving dropdown', field.name, e.detail);
521
- return this.saveFieldChange(field.name, e.detail, false);
521
+ return this.saveFieldChange(field.name, e.detail, false).then(() => {
522
+ // Advance to the next unfilled field once a selection is made, matching the
523
+ // signature/initial/date/textbox behavior. Guard on a value so clearing the
524
+ // selection doesn't yank focus away.
525
+ if (e.detail) {
526
+ this.focusNextFieldAfter(field);
527
+ }
528
+ });
522
529
  case 'initial':
523
530
  // This can be caused by a focus-out event if the user clicks the field
524
531
  // after it's already filled in, then clicks something else like a textbox.