Skip to content

Commit

Permalink
Changed propType validation. (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjaak Luthart authored and Lars Tadema committed Jan 10, 2018
1 parent 8a1bc5a commit bbb3aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checkbox/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Checkbox.propTypes = {
/** Override the styles of the label element */
labelStyle: PropTypes.instanceOf(Object),
/** The checkbox' value */
value: PropTypes.string.isRequired,
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool]).isRequired,
color: PropTypes.string.isRequired
};

Expand Down

0 comments on commit bbb3aa5

Please sign in to comment.