Skip to content

Commit

Permalink
fix for unclickable typeahead links (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelkornblum authored Nov 27, 2023
1 parent 9e0b582 commit 5086c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search/templates/search/partials/search_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -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'">
<button type="submit">Search</button>
<div id="autocomplete-results" class="autocomplete-overlay"></div>
Expand Down

0 comments on commit 5086c55

Please sign in to comment.