Skip to content

Commit

Permalink
Merge pull request #1 from mntbkr/input_allow_number
Browse files Browse the repository at this point in the history
Allow input to accept a string or a number
  • Loading branch information
Neil Holcomb authored Feb 9, 2017
2 parents ca222be + 64e4bef commit 5cdb680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default class Input extends Component {
/**
* The input value, required for a controlled component.
*/
value: PropTypes.string,
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};

static defaultProps = {
Expand Down

0 comments on commit 5cdb680

Please sign in to comment.