From 608282b318508dd3165e919aaaf2c5e3f5ec5e6f Mon Sep 17 00:00:00 2001 From: vmakhaev Date: Wed, 3 Dec 2014 18:52:08 +0300 Subject: [PATCH 1/4] add input onBlur --- src/js/app-bar.jsx | 2 +- src/js/input.jsx | 21 +++++++++++++-------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/js/app-bar.jsx b/src/js/app-bar.jsx index 43cf582baaa34a..5caa1174950519 100644 --- a/src/js/app-bar.jsx +++ b/src/js/app-bar.jsx @@ -55,4 +55,4 @@ var AppBar = React.createClass({ }); -module.exports = AppBar; \ No newline at end of file +module.exports = AppBar; diff --git a/src/js/input.jsx b/src/js/input.jsx index db12efe4807c62..2f4323a3acf6a7 100644 --- a/src/js/input.jsx +++ b/src/js/input.jsx @@ -17,7 +17,8 @@ var Input = React.createClass({ placeholder: React.PropTypes.string, type: React.PropTypes.string, name: React.PropTypes.string.isRequired, - onChange: React.PropTypes.func + onChange: React.PropTypes.func, + onBlur: React.PropTypes.func }, mixins: [Classable], @@ -52,20 +53,20 @@ var Input = React.createClass({ 'mui-error': this.props.error !== undefined && this.props.error !== null }), inputElement = this.props.multiline ? - this.props.valueLink ? + this.props.valueLink ?