Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove autocomplete suggestions in search #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion views/search-home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<h2 class="text-xl font-semibold">Search</h2>
<form hx-post="/fetchSearchPage" hx-swap="innerHTML" hx-target="#root">
<div>
<input class="border-2 border-gray-400 px-6 py-3 text-2xl w-full" placeholder="Begin Your Search Here..." type="text" name="query" value="">
<input class="border-2 border-gray-400 px-6 py-3 text-2xl w-full" autocomplete="off" placeholder="Begin Your Search Here..." type="text" name="query" value="">
</div>
</form>
</div>
Expand Down
2 changes: 1 addition & 1 deletion views/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div id="formwrapper" class="z-10 grid h-full place-items-center">
<form hx-post="/search" hx-target="#results-container" hx-swap="innerHTML" hx-trigger="load, submit">
<div id="searchbar" class="relative flex">
<input id="searchquery" class="w-full px-6 py-3 text-2xl border-2 border-gray-400" type="text" name="query" value="{{ . }}">
<input id="searchquery" autocomplete="off" class="w-full px-6 py-3 text-2xl border-2 border-gray-400" type="text" name="query" value="{{ . }}">
{{ template "indicator" . }}
</div>
</form>
Expand Down