Skip to content

Commit

Permalink
fix(Checkbox): fix value prop types (#1694)
Browse files Browse the repository at this point in the history
* fix(Checkbox): fix value prop types

* Update Checkbox.js
  • Loading branch information
fabien0102 authored and levithomason committed May 22, 2017
1 parent bacf4b7 commit 768a808
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/Checkbox/Checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ export default class Checkbox extends Component {
type: PropTypes.oneOf(['checkbox', 'radio']),

/** The HTML input value. */
value: PropTypes.string,
value: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number,
]),
}

static defaultProps = {
Expand Down

0 comments on commit 768a808

Please sign in to comment.