Autofocus search in appstore view
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user