summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elm/Lib/Autocomplete.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/Lib/Autocomplete.elm b/elm/Lib/Autocomplete.elm
index ec82bc12..2e321a87 100644
--- a/elm/Lib/Autocomplete.elm
+++ b/elm/Lib/Autocomplete.elm
@@ -173,7 +173,7 @@ update cfg msg model =
Key _ -> mod model
Input s ->
- if s == ""
+ if String.trim s == ""
then mod { model | value = s, loading = False, results = [] }
else ( { model | value = s, loading = True, wait = model.wait + 1 }
, Task.perform (always <| cfg.wrap <| Search <| model.wait + 1) (Process.sleep 500)