diff --git a/src/search/templates/search/partials/search_form.html b/src/search/templates/search/partials/search_form.html index 3d7739347..e3699ebe0 100644 --- a/src/search/templates/search/partials/search_form.html +++ b/src/search/templates/search/partials/search_form.html @@ -12,7 +12,7 @@ hx-trigger="input keyup changed delay:150ms" hx-get="{% url 'search:autocomplete' %}" hx-target="#autocomplete-results" - onblur="document.getElementById('autocomplete-results').style.display='none'" + onblur="setTimeout(() => {document.getElementById('autocomplete-results').style.display='none'}, 100)" onfocus="document.getElementById('autocomplete-results').style.display='block'">