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..c181e59ceee706 100644 --- a/src/js/input.jsx +++ b/src/js/input.jsx @@ -8,16 +8,20 @@ var Input = React.createClass({ propTypes: { multiline: React.PropTypes.bool, required: React.PropTypes.bool, + autocomplete: React.PropTypes.bool, + inlinePlaceholder: React.PropTypes.bool, min: React.PropTypes.number, max: React.PropTypes.number, step: React.PropTypes.number, + rows: React.PropTypes.number, inputStyle: React.PropTypes.string, error: React.PropTypes.string, description: React.PropTypes.string, 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], @@ -25,7 +29,7 @@ var Input = React.createClass({ getInitialState: function() { return { value: this.props.defaultValue, - rows: 1 + rows: this.props.rows }; }, @@ -51,22 +55,26 @@ var Input = React.createClass({ 'mui-text': this.props.type === 'text', 'mui-error': this.props.error !== undefined && this.props.error !== null }), + autocomplete = this.props.autocomplete ? "on" : "off", + placeholder = this.props.inlinePlaceholder ? this.props.placeholder : "", inputElement = this.props.multiline ? - this.props.valueLink ? -