@sprucelabs/heartwood-view-controllers 128.6.1 → 128.6.3

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.
@@ -163,6 +163,7 @@ class LoginCardViewController extends AbstractViewController {
163
163
  renderAs: 'checkbox',
164
164
  hint,
165
165
  });
166
+ fields[0].hint = null;
166
167
  }
167
168
  else {
168
169
  fields[0].hint = hint;
@@ -501,6 +501,15 @@ export default class FormViewController extends AbstractViewController {
501
501
  this.setSections(sections);
502
502
  }
503
503
  setSections(sections) {
504
+ var _a;
505
+ for (const section of sections) {
506
+ const fields = ((_a = section.fields) !== null && _a !== void 0 ? _a : []);
507
+ for (const field of fields) {
508
+ if (field === null || field === void 0 ? void 0 : field.fieldDefinition) {
509
+ this.updateField(field.name, field);
510
+ }
511
+ }
512
+ }
504
513
  this.model.sections = sections;
505
514
  this.triggerRender();
506
515
  }
@@ -155,6 +155,7 @@ class LoginCardViewController extends Abstract_vc_1.default {
155
155
  renderAs: 'checkbox',
156
156
  hint,
157
157
  });
158
+ fields[0].hint = null;
158
159
  }
159
160
  else {
160
161
  fields[0].hint = hint;
@@ -481,6 +481,14 @@ class FormViewController extends Abstract_vc_1.default {
481
481
  this.setSections(sections);
482
482
  }
483
483
  setSections(sections) {
484
+ for (const section of sections) {
485
+ const fields = (section.fields ?? []);
486
+ for (const field of fields) {
487
+ if (field?.fieldDefinition) {
488
+ this.updateField(field.name, field);
489
+ }
490
+ }
491
+ }
484
492
  this.model.sections = sections;
485
493
  this.triggerRender();
486
494
  }
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "sideEffects": false,
13
13
  "license": "MIT",
14
14
  "description": "All the power of Heartwood in one, convenient package.",
15
- "version": "128.6.1",
15
+ "version": "128.6.3",
16
16
  "skill": {
17
17
  "namespace": "HeartwoodViewControllers",
18
18
  "commandOverrides": {