From 5fa6e2fb9e6a00c964a3c8bffe66351ed5b3e7b2 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Fri, 10 Feb 2023 23:53:38 +1300 Subject: [PATCH] Unlock search suggestions properly (real) --- static/search-suggestions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/search-suggestions.js b/static/search-suggestions.js index 324bd4b..e0a32d6 100644 --- a/static/search-suggestions.js +++ b/static/search-suggestions.js @@ -64,6 +64,7 @@ render(html`<${SuggestionList} />`, eSuggestions) // input view effect(() => { + query.value // dependency should always be tracked if (st.peek() === "accepted") return // lock results from changing during navigation st.value = "loading" fetchSuggestions(query.value).then(res => {