We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 927208f commit d4bd605Copy full SHA for d4bd605
src/unfold/templates/unfold/helpers/search.html
@@ -12,7 +12,7 @@
12
x-on:focus="openSearchResults = true; currentIndex = 0"
13
x-on:keydown.arrow-down.prevent="nextItem()"
14
x-on:keydown.arrow-up.prevent="prevItem()"
15
- x-on:keydown.escape.prevent="openSearchResults=false"
+ x-on:keydown.escape.prevent="openSearchResults = false; if ($refs.searchInput.value === '') { $refs.searchInput.blur() } else { $refs.searchInput.value = '' }"
16
x-on:keydown.enter.prevent="selectItem()"
17
x-on:search="currentIndex = 0"
18
hx-get="{% url "admin:search" %}"
0 commit comments