Skip to content

Commit 5a940bc

Browse files
authored
feat: disable search autofocus (#200)
1 parent 013c8f2 commit 5a940bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unfold/templates/admin/search_form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div id="toolbar" class="lg:w-72">
55
<div>
66
<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">
7-
<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' %}" />
7+
<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' %}" />
88

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

0 commit comments

Comments
 (0)