From 5c61618116401dc1ab8c8b94becdbc521642af07 Mon Sep 17 00:00:00 2001 From: "m.volkov" Date: Tue, 7 Mar 2017 09:48:57 +0300 Subject: [PATCH] Value isn't required prop for now. --- .npmignore | 2 ++ package.json | 2 +- src/ValidatorComponent.jsx | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.npmignore b/.npmignore index 1add3fa..c90b5c6 100755 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1,5 @@ +examples/* +src/* etc/* node_modules .DS_Store diff --git a/package.json b/package.json index 8f3d7a1..24edcad 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-material-ui-form-validator", - "version": "0.1.0", + "version": "0.1.1", "description": "Simple validator for forms designed with material-ui components.", "main": "./lib/index.js", "scripts": { diff --git a/src/ValidatorComponent.jsx b/src/ValidatorComponent.jsx index 6bfce24..e0f021f 100755 --- a/src/ValidatorComponent.jsx +++ b/src/ValidatorComponent.jsx @@ -109,7 +109,7 @@ ValidatorComponent.propTypes = { value: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.number, - ]).isRequired, + ]), }; ValidatorComponent.defaultProps = {