react-formr
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -34,3 +34,3 @@ export interface FormMessages { | ||
/** Object of validation with respect to formFields */ | ||
validation?: FormrValidation<T>; | ||
validation?: Partial<FormrValidation<T>>; | ||
/** Control to disable autofocuse on return of input */ | ||
@@ -37,0 +37,0 @@ disbaleAutoFocus?: boolean; |
@@ -73,7 +73,6 @@ "use strict"; | ||
const submissionAllowed = !Object.keys(formFields).some((key) => { | ||
var _a, _b; | ||
// reurn true if any nonvalid formfields | ||
if (validation && | ||
validation[key] && | ||
validation[key].hasOwnProperty('required') && | ||
validation[key].required) { | ||
if (((_a = validation === null || validation === void 0 ? void 0 : validation[key]) === null || _a === void 0 ? void 0 : _a.hasOwnProperty('required')) && | ||
((_b = validation === null || validation === void 0 ? void 0 : validation[key]) === null || _b === void 0 ? void 0 : _b.required)) { | ||
return valid.current[key] === false; | ||
@@ -80,0 +79,0 @@ } |
{ | ||
"name": "react-formr", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Form managing component for React & React Native", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
57579
0
869