From 1aa874c2c0813edea8510a8fb3e644e04445ba0b Mon Sep 17 00:00:00 2001 From: Alex Lockhart Date: Thu, 17 Nov 2016 18:27:38 -0400 Subject: [PATCH] Style changes --- src/FormsyAutoComplete.jsx | 104 ++++++++++++++++++------------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/src/FormsyAutoComplete.jsx b/src/FormsyAutoComplete.jsx index 55f24ac..72aad82 100644 --- a/src/FormsyAutoComplete.jsx +++ b/src/FormsyAutoComplete.jsx @@ -6,66 +6,66 @@ import { setMuiComponentAndMaybeFocus } from 'formsy-react/src/utils'; const FormsyAutoComplete = React.createClass({ - propTypes: { - defaultValue: React.PropTypes.any, - name: React.PropTypes.string.isRequired, - onBlur: React.PropTypes.func, - onChange: React.PropTypes.func, - onFocus: React.PropTypes.func, - onKeyDown: React.PropTypes.func, - value: React.PropTypes.any - }, + propTypes: { + defaultValue: React.PropTypes.any, + name: React.PropTypes.string.isRequired, + onBlur: React.PropTypes.func, + onChange: React.PropTypes.func, + onFocus: React.PropTypes.func, + onKeyDown: React.PropTypes.func, + value: React.PropTypes.any, + }, - mixins: [Formsy.Mixin], + mixins: [Formsy.Mixin], - getInitialState() { - return { - value: this.props.defaultValue || this.props.value || '', - }; - }, + getInitialState() { + return { + value: this.props.defaultValue || this.props.value || '', + }; + }, - componentWillMount() { - this.setValue(this.props.defaultValue || this.props.value || ''); - }, + componentWillMount() { + this.setValue(this.props.defaultValue || this.props.value || ''); + }, - handleBlur: function handleBlur(event) { - this.setValue(event.currentTarget.value); - if (this.props.onBlur) this.props.onBlur(event); - }, + handleBlur: function handleBlur(event) { + this.setValue(event.currentTarget.value); + if (this.props.onBlur) this.props.onBlur(event); + }, - handleChange: function handleChange(event) { - this.setState({ - value: event.currentTarget.value, - }); - if (this.props.onChange) this.props.onChange(event); - }, + handleChange: function handleChange(event) { + this.setState({ + value: event.currentTarget.value, + }); + if (this.props.onChange) this.props.onChange(event); + }, - handleKeyDown: function handleKeyDown(event) { - if (keycode(event) === 'enter') this.setValue(event.currentTarget.value); - if (this.props.onKeyDown) this.props.onKeyDown(event, event.currentTarget.value); - }, + handleKeyDown: function handleKeyDown(event) { + if (keycode(event) === 'enter') this.setValue(event.currentTarget.value); + if (this.props.onKeyDown) this.props.onKeyDown(event, event.currentTarget.value); + }, - setMuiComponentAndMaybeFocus: setMuiComponentAndMaybeFocus, + setMuiComponentAndMaybeFocus: setMuiComponentAndMaybeFocus, - render() { - const { - defaultValue, // eslint-disable-line no-unused-vars - onFocus, - value, // eslint-disable-line no-unused-vars - ...rest } = this.props; - return ( - - ); - }, + render() { + const { + defaultValue, // eslint-disable-line no-unused-vars + onFocus, + value, // eslint-disable-line no-unused-vars + ...rest } = this.props; + return ( + + ); + }, }); export default FormsyAutoComplete;