@astroapps/forms-core 1.2.0 → 1.2.1

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.
package/lib/index.cjs CHANGED
@@ -1466,9 +1466,9 @@ function createValidators(def, context) {
1466
1466
  });
1467
1467
  }
1468
1468
  }
1469
- function setupValidation(controlImpl, definition, dataNode, schemaInterface, parent, formNode, runAsync) {
1469
+ function setupValidation(controlImpl, definition, dataNode, schemaInterface, parent, formNode, hidden, runAsync) {
1470
1470
  var validationEnabled = createScopedComputed(controlImpl, function () {
1471
- return !definition.hidden;
1471
+ return !hidden.value;
1472
1472
  });
1473
1473
  var validatorsScope = controls.createCleanupScope();
1474
1474
  controls.createEffect(function () {
@@ -1669,7 +1669,7 @@ function createFormState(schemaInterface, evaluators) {
1669
1669
  }
1670
1670
  }
1671
1671
  }, displayOverrides);
1672
- setupValidation(controlImpl, definition, dataNode, schemaInterface, parent, formNode, runAsync);
1672
+ setupValidation(controlImpl, definition, dataNode, schemaInterface, parent, formNode, hidden, runAsync);
1673
1673
  controls.createSyncEffect(function () {
1674
1674
  var _dataNode$value;
1675
1675
  var dn = (_dataNode$value = dataNode.value) == null ? void 0 : _dataNode$value.control;