diff --git a/static/js/autocomplete.js b/static/js/autocomplete.js index 3e1cb58..3c7a2f5 100644 --- a/static/js/autocomplete.js +++ b/static/js/autocomplete.js @@ -52,6 +52,7 @@ async function getSuggestions(query) { let currentIndex = -1; // Keep track of the currently selected suggestion +// Handle click events on the type buttons let results = []; searchInput.addEventListener('input', async () => { let input = searchInput.value; @@ -128,15 +129,6 @@ function renderResults(results) { resultsWrapper.innerHTML = `