Skip to content

Commit

Permalink
Modified input component props to suport the number type (dfee#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdmg94 authored and couds committed Jul 9, 2018
1 parent d79a28b commit 72e7456
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/form/components/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export default class Input extends PureComponent {
isStatic: PropTypes.bool,
disabled: PropTypes.bool,
placeholder: PropTypes.string,
value: PropTypes.string,
value: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number,
]),
/**
* The name of the input field Commonly used for [multi-input handling](https://reactjs.org/docs/forms.html#handling-multiple-inputs)
*/
Expand Down

0 comments on commit 72e7456

Please sign in to comment.