@verdocs/web-sdk 5.0.9 → 5.0.10

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.
@@ -811,12 +811,14 @@ const VerdocsFieldTextbox = class {
811
811
  }
812
812
  render() {
813
813
  const { source, sourceid, fieldname, editable = false, done = false, disabled = false, focused, xscale = 1, yscale = 1 } = this;
814
+ console.log('Rendering textbox', source, sourceid, fieldname);
814
815
  const { index, field } = Store.getField(source, sourceid, fieldname);
816
+ console.log('Textbox', index, getRGBA(index), field);
815
817
  let { required = false, placeholder = '', label = '', width = 150, default: value = '', multiline = false } = field || {};
816
818
  const backgroundColor = getRGBA(index);
817
819
  // TODO: Consolidate value/defaultValue handling between template and envelope fields
818
- if (field.value) {
819
- value = field.value;
820
+ if (field === null || field === void 0 ? void 0 : field.value) {
821
+ value = field === null || field === void 0 ? void 0 : field.value;
820
822
  }
821
823
  // TODO: This is an outdated technique from the old system. We should compute it.
822
824
  const maxlength = width / 5;