From 441ea8e2e7914f45491627d3c6723e446e0bfae5 Mon Sep 17 00:00:00 2001 From: alan-cruz2 Date: Thu, 10 Aug 2017 19:02:01 -0700 Subject: [PATCH] Update FormsyAutoComplete.jsx --- src/FormsyAutoComplete.jsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/FormsyAutoComplete.jsx b/src/FormsyAutoComplete.jsx index be1503a..96db3d5 100644 --- a/src/FormsyAutoComplete.jsx +++ b/src/FormsyAutoComplete.jsx @@ -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); },