Skip to content

Commit

Permalink
feat: disable search autofocus (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav authored Nov 15, 2023
1 parent 013c8f2 commit 5a940bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unfold/templates/admin/search_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div id="toolbar" class="lg:w-72">
<div>
<div class="bg-white border flex rounded-md overflow-hidden shadow-sm focus-within:ring focus-within:ring-primary-300 focus-within:border-primary-600 dark:bg-gray-900 dark:border-gray-700 dark:focus-within:border-primary-600 dark:focus-within:ring-primary-700 dark:focus-within:ring-opacity-50">
<input class="font-medium h-9 px-3 text-gray-500 text-sm w-40 lg:w-60 focus:outline-none dark:bg-gray-900 dark:text-gray-400" type="text" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" autofocus placeholder="{% trans 'Type to search' %}" />
<input class="font-medium h-9 px-3 text-gray-500 text-sm w-40 lg:w-60 focus:outline-none dark:bg-gray-900 dark:text-gray-400" type="text" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" placeholder="{% trans 'Type to search' %}" />

<button type="submit" class="flex items-center ml-auto px-2 focus:outline-none" id="searchbar-submit">
<span class="material-symbols-outlined md-18 text-gray-400 dark:text-gray-500">search</span>
Expand Down

0 comments on commit 5a940bc

Please sign in to comment.