Reduce debounce time for search

This commit is contained in:
Jake Howard 2022-10-29 16:28:18 +01:00
parent 0ac4fd1135
commit 2e4e54418d
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -6,7 +6,7 @@
<section class="container search-controls">
<div class="field">
<p class="control has-icons-left has-icons-right">
<input type="search" class="input" name="q" placeholder="Search" hx-get="{{ search_url }}" hx-trigger="keyup changed delay:300ms, search{% if search_query %}, load{% endif %}" hx-target="#search-results" autocomplete="off" value="{{ search_query }}" hx-indicator="#search-indicator" />
<input type="search" class="input" name="q" placeholder="Search" hx-get="{{ search_url }}" hx-trigger="keyup changed delay:200ms, search{% if search_query %}, load{% endif %}" hx-target="#search-results" autocomplete="off" value="{{ search_query }}" hx-indicator="#search-indicator" />
<span class="icon is-small is-left">
<i class="fas fa-search"></i>
</span>