Skip to content

Commit

Permalink
Merge pull request #2898 from kujon/correct_prop_types
Browse files Browse the repository at this point in the history
Corrected prop types for ArrayInput
  • Loading branch information
Gildas Garcia authored Feb 20, 2019
2 parents 459ba28 + 3b67ba8 commit f88346f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ra-ui-materialui/src/input/ArrayInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ ArrayInput.propTypes = {
source: PropTypes.string,
record: PropTypes.object,
options: PropTypes.object,
validate: PropTypes.func,
validate: PropTypes.oneOfType([
PropTypes.func,
PropTypes.arrayOf(PropTypes.func),
]),
};

ArrayInput.defaultProps = {
Expand Down

0 comments on commit f88346f

Please sign in to comment.