Autofocus search in appstore view

This commit is contained in:
Johannes Zellner
2025-10-21 22:33:37 +02:00
parent dc07078fd4
commit aada3f3979
+3 -1
View File
@@ -204,6 +204,8 @@ onActivated(async () => {
onHashChange();
window.addEventListener('resize', setItemWidth);
setTimeout(() => searchInput.value.focus(), 0);
});
onDeactivated(() => {
@@ -223,7 +225,7 @@ onDeactivated(() => {
<div class="filter-bar">
<SingleSelect v-model="category" :options="categories" option-key="id" option-label="label" :disabled="!ready"/>
<TextInput ref="searchInput" @keydown.esc="search = ''" v-model="search" :disabled="!ready" :placeholder="$t('appstore.searchPlaceholder')" style="flex-grow: 1;"/>
<TextInput ref="searchInput" @keydown.esc="search = ''" v-model="search" :disabled="!ready" :placeholder="$t('appstore.searchPlaceholder')" style="flex-grow: 1;" autocomplete="off"/>
</div>
<div v-if="!ready" style="margin-top: 15px">