Skip to content

Commit 226994a

Browse files
nightkrGusted
authored andcommitted
fix: Remove autofocus on the dashboard repository search box (go-gitea#6734)
- No longer autofocus on the searchbox for the repository list that is on the dashboard. There is no justification for doing so. - Fixes go-gitea#6653 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6734 Reviewed-by: Otto <[email protected]> Reviewed-by: Beowulf <[email protected]> Reviewed-by: Gusted <[email protected]> Co-authored-by: Natalie Klestrup Röijezon <[email protected]> Co-committed-by: Natalie Klestrup Röijezon <[email protected]>
1 parent 5813244 commit 226994a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

web_src/js/components/DashboardRepoList.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import {createApp, nextTick} from 'vue';
2+
import {createApp} from 'vue';
33
import $ from 'jquery';
44
import {SvgIcon} from '../svg.js';
55
import {GET} from '../modules/fetch.js';
@@ -103,9 +103,6 @@ const sfc = {
103103
const el = document.getElementById('dashboard-repo-list');
104104
this.changeReposFilter(this.reposFilter);
105105
$(el).find('.dropdown').dropdown();
106-
nextTick(() => {
107-
this.$refs.search.focus();
108-
});
109106
110107
this.textArchivedFilterTitles = {
111108
'archived': this.textShowOnlyArchived,

0 commit comments

Comments
 (0)