Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 5ed5ace

Browse files
authored
Merge pull request #1208 from daneryl/master
added array as allowed propType for control/field
2 parents 47f71d7 + 7123c34 commit 5ed5ace

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/components/control-component-factory.js

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const propTypes = {
4242
model: PropTypes.oneOfType([
4343
PropTypes.func,
4444
PropTypes.string,
45+
PropTypes.array,
4546
]).isRequired,
4647
modelValue: PropTypes.any,
4748
viewValue: PropTypes.any,

src/components/field-component.js

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const fieldPropTypes = {
2323
model: PropTypes.oneOfType([
2424
PropTypes.func,
2525
PropTypes.string,
26+
PropTypes.array,
2627
]).isRequired,
2728
component: PropTypes.oneOfType([
2829
PropTypes.func,

0 commit comments

Comments
 (0)