From 55290836e8fc31dbe0e5eb719ce8ae9df765e70b Mon Sep 17 00:00:00 2001 From: "m.volkov" Date: Fri, 28 Apr 2017 15:32:35 +0300 Subject: [PATCH] Added object propType to value. --- package.json | 2 +- src/ValidatorComponent.jsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 99237af..09512c7 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-material-ui-form-validator", - "version": "0.3.0", + "version": "0.3.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 c4fb386..a05d50e 100755 --- a/src/ValidatorComponent.jsx +++ b/src/ValidatorComponent.jsx @@ -110,6 +110,7 @@ ValidatorComponent.propTypes = { validators: PropTypes.array, name: PropTypes.string, value: PropTypes.oneOfType([ + PropTypes.object, PropTypes.string, PropTypes.number, ]),