From c33a36e35a92901fddc006590f6f9a7cd4561b83 Mon Sep 17 00:00:00 2001 From: "Woodson, Marques" Date: Wed, 15 Oct 2014 11:28:40 -0500 Subject: [PATCH 1/2] Added an onChange property to the Input component. This will be the name of a callback function that the user passes. Closes #3 --- dist/js/input.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/js/input.jsx b/dist/js/input.jsx index 7cd8e799bd52e1..88a1347f397333 100644 --- a/dist/js/input.jsx +++ b/dist/js/input.jsx @@ -74,7 +74,7 @@ var Input = React.createClass({ case false: return (
- + {this.props.placeholder} From 7f2695fbed982205fb3af6a70c92b539681e114e Mon Sep 17 00:00:00 2001 From: "Woodson, Marques" Date: Wed, 15 Oct 2014 11:34:08 -0500 Subject: [PATCH 2/2] Added a propType for the onChange property --- dist/js/input.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/js/input.jsx b/dist/js/input.jsx index 88a1347f397333..41317ccd7df5c8 100644 --- a/dist/js/input.jsx +++ b/dist/js/input.jsx @@ -16,7 +16,8 @@ var Input = React.createClass({ description: React.PropTypes.string, placeholder: React.PropTypes.string, type: React.PropTypes.string.isRequired, - name: React.PropTypes.string.isRequired + name: React.PropTypes.string.isRequired, + onChange: React.PropTypes.func }, mixins: [Classable],