Skip to content

Commit

Permalink
Update FormsyAutoComplete.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-cruz2 authored Aug 11, 2017
1 parent 11a5d4a commit 441ea8e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/FormsyAutoComplete.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,12 @@ const FormsyAutoComplete = createClass({
},

handleChange: function handleChange(event) {
this.setValue({
value: event.currentTarget.value,
});
this.setValue(event.currentTarget.value);
if (this.props.onChange) this.props.onChange(event);
},

handleUpdateInput: function handleUpdateInput(value) {
this.setValue({
value,
});
this.setValue(value);
if (this.props.onChange) this.props.onChange(null, value);
},

Expand Down

0 comments on commit 441ea8e

Please sign in to comment.