diff --git a/static/search-suggestions.js b/static/search-suggestions.js index ae8be36..fcd5ee6 100644 --- a/static/search-suggestions.js +++ b/static/search-suggestions.js @@ -87,7 +87,7 @@ window.addEventListener("pageshow", () => { }) effect(() => { - if (enterWasLastKey.value && st.value === "loading") { + if (enterWasLastKey.value && (st.value === "loading" || st.value === "accepted")) { enterWasLastKey.value.preventDefault() // wait for results before going } })