@churchillliving/se-ui-toolkit 6.53.522 → 6.53.524

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.
@@ -7462,15 +7462,21 @@
7462
7462
  */
7463
7463
  FormComponent.prototype.sectionDisabled = function (formSection) {
7464
7464
  if (formSection.disabled) {
7465
- formSection.fields.map(function (field) {
7466
- field.disabled = true;
7467
- });
7468
- return formSection;
7465
+ return this.disabledSectionFields(formSection, true);
7466
+ }
7467
+ else if (formSection.disabled === false) {
7468
+ return this.disabledSectionFields(formSection, false);
7469
7469
  }
7470
7470
  else {
7471
7471
  return formSection;
7472
7472
  }
7473
7473
  };
7474
+ FormComponent.prototype.disabledSectionFields = function (formSection, disabled) {
7475
+ formSection.fields.map(function (field) {
7476
+ field.disabled = disabled;
7477
+ });
7478
+ return formSection;
7479
+ };
7474
7480
  FormComponent.prototype.loadIFrame = function (formField) {
7475
7481
  var _a, _b, _c;
7476
7482
  this.handleClickEvent(formField);