From 82d0321f1f46aeda20cb31454dd1047b35a6c9f4 Mon Sep 17 00:00:00 2001 From: Christophe Date: Wed, 31 Mar 2021 18:30:13 +0200 Subject: render again if data has changed --- autocomplete.js | 1 + 1 file changed, 1 insertion(+) 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() { -- cgit v1.2.3