Skip to content

Commit

Permalink
#34 fixed Field component validate prop type
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrohsilveira committed Oct 11, 2017
1 parent 6545bc4 commit 6d07cd2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/react-formctrl/src/field/field.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,10 @@ export class Field extends React.Component {
PropTypes.number,
PropTypes.string
]),
validate: PropTypes.arrayOf(PropTypes.oneOfType([
validate: PropTypes.oneOfType([
PropTypes.string,
PropTypes.shape({
name: PropTypes.string.isRequired,
params: PropTypes.any
})
]))
PropTypes.arrayOf(PropTypes.string)
])
}

constructor(props) {
Expand Down

0 comments on commit 6d07cd2

Please sign in to comment.