summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny S <me@ch1p.io>2021-04-06 15:30:28 +0300
committerGitHub <noreply@github.com>2021-04-06 15:30:28 +0300
commit88f097308734bd79ca911aab52a55bc2bba82331 (patch)
treee9958741dd0f36323b174347fc6995a981d3cd07
parent724ee6c6f4ebb69a3a5200cd5d29dbe54991ad91 (diff)
parent82d0321f1f46aeda20cb31454dd1047b35a6c9f4 (diff)
Merge pull request #2 from CBke/dynamicdata
render again if data has changed
-rw-r--r--autocomplete.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/autocomplete.js b/autocomplete.js
index 90629a2..dc95a1b 100644
--- a/autocomplete.js
+++ b/autocomplete.js
@@ -46,6 +46,7 @@ class Autocomplete {
setData(data) {
this.options.data = data;
+ this.renderIfNeeded();
}
renderIfNeeded() {