Skip to content

Commit

Permalink
Reimplemented onUpdateInput from #121 (was lost in merge)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikras committed Apr 14, 2017
1 parent a0f4fce commit 99ff8be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@ export default createComponent(AutoComplete, ({
onNewRequest(value);
}
},
onUpdateInput: value => {
if (!dataSourceConfig) {
onChange(value);
}
},
}));

0 comments on commit 99ff8be

Please sign in to comment.