diff options
author | Evgeny S <me@ch1p.io> | 2021-04-06 15:30:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 15:30:28 +0300 |
commit | 88f097308734bd79ca911aab52a55bc2bba82331 (patch) | |
tree | e9958741dd0f36323b174347fc6995a981d3cd07 /autocomplete.js | |
parent | 724ee6c6f4ebb69a3a5200cd5d29dbe54991ad91 (diff) | |
parent | 82d0321f1f46aeda20cb31454dd1047b35a6c9f4 (diff) |
Merge pull request #2 from CBke/dynamicdata
render again if data has changed
Diffstat (limited to 'autocomplete.js')
-rw-r--r-- | autocomplete.js | 1 |
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() { |