From 64e4befeca6454469296d5e5fff4e2166f647268 Mon Sep 17 00:00:00 2001 From: Neil Holcomb Date: Wed, 8 Feb 2017 19:25:17 -0800 Subject: [PATCH] Allow input to accept a string or a number --- src/Input/Input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Input/Input.js b/src/Input/Input.js index b62a513ecb0875..d2b002f095537e 100644 --- a/src/Input/Input.js +++ b/src/Input/Input.js @@ -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 = {