Skip to content

Commit 3eb496d

Browse files
authored
Merge pull request #1378 from rvsia/addFunctionToProptyteps
fix(renderer): fix proptypes for is function
2 parents 50e054d + 3f4e63b commit 3eb496d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-form-renderer/src/condition/condition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const Condition = React.memo(
103103

104104
const conditionProps = {
105105
when: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
106-
is: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.object, PropTypes.number, PropTypes.bool]),
106+
is: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.object, PropTypes.number, PropTypes.bool, PropTypes.func]),
107107
isNotEmpty: PropTypes.bool,
108108
isEmpty: PropTypes.bool,
109109
pattern: (props, name, componentName) => {

0 commit comments

Comments
 (0)