From 99ff8be83ab3b8dd74c22eab661e9e07908027ef Mon Sep 17 00:00:00 2001 From: Erik Rasmussen Date: Fri, 14 Apr 2017 11:58:05 +0200 Subject: [PATCH] Reimplemented onUpdateInput from #121 (was lost in merge) --- src/AutoComplete.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/AutoComplete.js b/src/AutoComplete.js index 4b169d7..a9c95b8 100644 --- a/src/AutoComplete.js +++ b/src/AutoComplete.js @@ -21,4 +21,9 @@ export default createComponent(AutoComplete, ({ onNewRequest(value); } }, + onUpdateInput: value => { + if (!dataSourceConfig) { + onChange(value); + } + }, }));