Skip to content

Commit 13e394a

Browse files
m.volkovm.volkov
authored andcommitted
'Value' prop can accept any type of value
1 parent 5529083 commit 13e394a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-material-ui-form-validator",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "Simple validator for forms designed with material-ui components.",
55
"main": "./lib/index.js",
66
"scripts": {

src/ValidatorComponent.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,7 @@ ValidatorComponent.propTypes = {
109109
]),
110110
validators: PropTypes.array,
111111
name: PropTypes.string,
112-
value: PropTypes.oneOfType([
113-
PropTypes.object,
114-
PropTypes.string,
115-
PropTypes.number,
116-
]),
112+
value: PropTypes.any,
117113
};
118114

119115
ValidatorComponent.defaultProps = {

0 commit comments

Comments
 (0)