Skip to content

Commit 35ca0a8

Browse files
jascoTheSharpieOne
authored andcommitted
fix(CustomInput): fix Invalid propType. (#994)
Closes #993
1 parent 9317572 commit 35ca0a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/lib/Components/FormPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default class FormPage extends React.Component {
7979
invalid: PropTypes.bool, // applied the is-valid class when true, does nothing when false
8080
bsSize: PropTypes.string,
8181
cssModule: PropTypes.object,
82-
children: PropTypes.oneOfType(PropTypes.node, PropTypes.array, PropTypes.func) // for type="select"
82+
children: PropTypes.oneOfType([PropTypes.node, PropTypes.array, PropTypes.func]) // for type="select"
8383
};`}
8484
</PrismCode>
8585
</pre>

src/CustomInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const propTypes = {
1313
invalid: PropTypes.bool,
1414
bsSize: PropTypes.string,
1515
cssModule: PropTypes.object,
16-
children: PropTypes.oneOfType(PropTypes.node, PropTypes.array, PropTypes.func)
16+
children: PropTypes.oneOfType([PropTypes.node, PropTypes.array, PropTypes.func])
1717
};
1818

1919
function CustomInput(props) {

0 commit comments

Comments
 (0)