Skip to content

Commit

Permalink
fix(CustomInput): fix Invalid propType. (#994)
Browse files Browse the repository at this point in the history
Closes #993
  • Loading branch information
jasco authored and TheSharpieOne committed May 2, 2018
1 parent 9317572 commit 35ca0a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/lib/Components/FormPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class FormPage extends React.Component {
invalid: PropTypes.bool, // applied the is-valid class when true, does nothing when false
bsSize: PropTypes.string,
cssModule: PropTypes.object,
children: PropTypes.oneOfType(PropTypes.node, PropTypes.array, PropTypes.func) // for type="select"
children: PropTypes.oneOfType([PropTypes.node, PropTypes.array, PropTypes.func]) // for type="select"
};`}
</PrismCode>
</pre>
Expand Down
2 changes: 1 addition & 1 deletion src/CustomInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const propTypes = {
invalid: PropTypes.bool,
bsSize: PropTypes.string,
cssModule: PropTypes.object,
children: PropTypes.oneOfType(PropTypes.node, PropTypes.array, PropTypes.func)
children: PropTypes.oneOfType([PropTypes.node, PropTypes.array, PropTypes.func])
};

function CustomInput(props) {
Expand Down

0 comments on commit 35ca0a8

Please sign in to comment.