From 5dd6167784b6b8bdc3ffde81488be8cff42424fe Mon Sep 17 00:00:00 2001 From: Sander Muller Date: Thu, 12 Sep 2024 11:24:09 +0200 Subject: [PATCH] Fix load once load function override --- doc_src/pages/examples/remote.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc_src/pages/examples/remote.njk b/doc_src/pages/examples/remote.njk index 0907cba7..2ea199db 100644 --- a/doc_src/pages/examples/remote.njk +++ b/doc_src/pages/examples/remote.njk @@ -135,7 +135,7 @@ new TomSelect('#select-state',{ .then(response => response.json()) .then(json => { callback(json.result.list); - self.settings.load = null; + self.settings.load = (query, callback) => callback(); }).catch(()=>{ callback(); });