availity-reactstrap-validation
Advanced tools
Comparing version 2.2.4 to 2.3.0
@@ -0,1 +1,11 @@ | ||
<a name="2.3.0"></a> | ||
# [2.3.0](https://github.com/Availity/availity-reactstrap-validation/compare/v2.2.4...v2.3.0) (2018-10-10) | ||
### Features | ||
* **validations:** add enabled property to validation ([#97](https://github.com/Availity/availity-reactstrap-validation/issues/97)) ([d636c0f](https://github.com/Availity/availity-reactstrap-validation/commit/d636c0f)) | ||
<a name="2.2.4"></a> | ||
@@ -2,0 +12,0 @@ ## [2.2.4](https://github.com/Availity/availity-reactstrap-validation/compare/v2.2.3...v2.2.4) (2018-10-09) |
@@ -687,3 +687,7 @@ 'use strict'; | ||
ruleResult = _AvValidator2.default[rule](val, context, ruleProp[rule], input, callback); | ||
if (ruleProp[rule].enabled === false) { | ||
ruleResult = true; | ||
} else { | ||
ruleResult = _AvValidator2.default[rule](val, context, ruleProp[rule], input, callback); | ||
} | ||
} | ||
@@ -690,0 +694,0 @@ |
@@ -10,6 +10,8 @@ 'use strict'; | ||
var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, | ||
_ref$value = _ref.value, | ||
enabled = _ref$value === undefined ? true : _ref$value, | ||
_ref$errorMessage = _ref.errorMessage, | ||
errorMessage = _ref$errorMessage === undefined ? false : _ref$errorMessage; | ||
return !(0, _utils.isEmpty)(value) || errorMessage || false; | ||
return !enabled || !(0, _utils.isEmpty)(value) || errorMessage || false; | ||
} |
{ | ||
"name": "availity-reactstrap-validation", | ||
"version": "2.2.4", | ||
"version": "2.3.0", | ||
"author": "Evan Sharp <evan.sharp@availity.com>", | ||
@@ -5,0 +5,0 @@ "description": "Form validation helpers for reactstrap", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
6321741
35980