Comparing version 0.23.0 to 0.24.0
@@ -250,6 +250,8 @@ "use strict"; | ||
/** | ||
* If no field has error | ||
* and all subfields are validated | ||
* then re-validate the form */ | ||
if (!_this.hasFieldError | ||
* Compose triggers an automatic self validation of the form based on this criteria | ||
*/ | ||
if ( | ||
/** If no field has error */ | ||
!_this.hasFieldError | ||
&& !_this.validating | ||
&& !_this.getValues().some(function (value) { return _this.validatedSubFields.indexOf(value) === -1; })) { | ||
@@ -256,0 +258,0 @@ _this.validate(); |
{ | ||
"name": "formstate", | ||
"version": "0.23.0", | ||
"version": "0.24.0", | ||
"description": "Painless and simple MobX form management", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -183,6 +183,10 @@ import { observable, action, computed, runInAction, isObservable, isArrayLike } from 'mobx'; | ||
/** | ||
* If no field has error | ||
* and all subfields are validated | ||
* then re-validate the form */ | ||
if (!this.hasFieldError | ||
* Compose triggers an automatic self validation of the form based on this criteria | ||
*/ | ||
if ( | ||
/** If no field has error */ | ||
!this.hasFieldError | ||
/** And there isn't an active validation taking place */ | ||
&& !this.validating | ||
/** And all subfields are validated */ | ||
&& !this.getValues().some(value => this.validatedSubFields.indexOf(value) === -1) | ||
@@ -194,3 +198,3 @@ ) { | ||
} | ||
)) | ||
)); | ||
return this; | ||
@@ -197,0 +201,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75071
2008