@nattyjs/forms 0.0.1-beta.62 → 0.0.1-beta.64

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/dist/index.cjs CHANGED
@@ -377,6 +377,8 @@ class FormGroup {
377
377
  runValidator(propName) {
378
378
  if (nattyForms.formConfig?.runValidatorStrategy && nattyForms.formConfig?.runValidatorStrategy == RunValidatorStrategy.OnSubmit && this.submit || !nattyForms.formConfig?.runValidatorStrategy) {
379
379
  if (this.validators) {
380
+ if (Array.isArray(this._value[propName]) && this.childrens.has(propName))
381
+ return;
380
382
  const validator = this.validators[propName];
381
383
  if (validator) {
382
384
  const errors = this.runValidation(validator, { name: propName, value: this._value[propName], current: this, root: this.root });
@@ -453,7 +455,6 @@ const Validators = {
453
455
  };
454
456
 
455
457
  validationDecorators.decoratorRegistrationCaller.register = ReactiveFormContainer.register;
456
- console.log("local link");
457
458
 
458
459
  exports.allOf = validationDecorators.decoratorAllOfValidation;
459
460
  exports.alpha = validationDecorators.decoratorAlphaValidation;
package/dist/index.mjs CHANGED
@@ -376,6 +376,8 @@ class FormGroup {
376
376
  runValidator(propName) {
377
377
  if (nattyForms.formConfig?.runValidatorStrategy && nattyForms.formConfig?.runValidatorStrategy == RunValidatorStrategy.OnSubmit && this.submit || !nattyForms.formConfig?.runValidatorStrategy) {
378
378
  if (this.validators) {
379
+ if (Array.isArray(this._value[propName]) && this.childrens.has(propName))
380
+ return;
379
381
  const validator = this.validators[propName];
380
382
  if (validator) {
381
383
  const errors = this.runValidation(validator, { name: propName, value: this._value[propName], current: this, root: this.root });
@@ -452,6 +454,5 @@ const Validators = {
452
454
  };
453
455
 
454
456
  decoratorRegistrationCaller.register = ReactiveFormContainer.register;
455
- console.log("local link");
456
457
 
457
458
  export { RunValidatorStrategy, Validators, nattyForms, useForm };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nattyjs/forms",
3
- "version": "0.0.1-beta.62",
3
+ "version": "0.0.1-beta.64",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "module": "./dist/index.mjs",
@@ -15,7 +15,7 @@
15
15
  "author": "ajayojha",
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
- "@nattyjs/validation-decorators": "0.0.1-beta.62"
18
+ "@nattyjs/validation-decorators": "0.0.1-beta.64"
19
19
  },
20
20
  "devDependencies": {
21
21
  "unbuild": "1.2.1"