fix(prop-types): check for react components via PropTypes.elementType (#4025)

This commit is contained in:
Erez Rokah
2020-07-15 14:21:08 +03:00
committed by GitHub
parent 9119011c8f
commit d3831b1ed4
6 changed files with 41 additions and 33 deletions

View File

@ -32,7 +32,7 @@ export default class ObjectControl extends React.Component {
classNameWrapper: PropTypes.string.isRequired,
forList: PropTypes.bool,
controlRef: PropTypes.func,
editorControl: PropTypes.func.isRequired,
editorControl: PropTypes.elementType.isRequired,
resolveWidget: PropTypes.func.isRequired,
clearFieldErrors: PropTypes.func.isRequired,
fieldsErrors: ImmutablePropTypes.map.isRequired,