fix: Remove autofocus on the dashboard repository search box (#6734)

- No longer autofocus on the searchbox for the repository list that is on the dashboard. There is no justification for doing so.
- Fixes #6653

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6734
Reviewed-by: Otto <otto@codeberg.org>
Reviewed-by: Beowulf <beowulf@beocode.eu>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Natalie Klestrup Röijezon <nat@nullable.se>
Co-committed-by: Natalie Klestrup Röijezon <nat@nullable.se>
This commit is contained in:
Natalie Klestrup Röijezon 2025-01-31 10:09:31 +00:00 committed by Gusted
parent 5813244ff8
commit 226994a6df

View file

@ -1,5 +1,5 @@
<script>
import {createApp, nextTick} from 'vue';
import {createApp} from 'vue';
import $ from 'jquery';
import {SvgIcon} from '../svg.js';
import {GET} from '../modules/fetch.js';
@ -103,9 +103,6 @@ const sfc = {
const el = document.getElementById('dashboard-repo-list');
this.changeReposFilter(this.reposFilter);
$(el).find('.dropdown').dropdown();
nextTick(() => {
this.$refs.search.focus();
});
this.textArchivedFilterTitles = {
'archived': this.textShowOnlyArchived,