summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autocomplete.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/autocomplete.js b/autocomplete.js
index 1d3be4a..3350108 100644
--- a/autocomplete.js
+++ b/autocomplete.js
@@ -50,6 +50,7 @@ class Autocomplete {
setData(data) {
this.options.data = data;
+ this.renderIfNeeded();
}
renderIfNeeded() {