[v10.0/forgejo] fix: Remove autofocus on the dashboard repository search box (#6748)
- No longer autofocus on the searchbox for the repository list that is on the dashboard. There is no justification for doing so. - Fixes #6653 Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org> Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
This commit is contained in:
parent
69bc17ea35
commit
1b00bf2d26
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import {createApp, nextTick} from 'vue';
|
import {createApp} from 'vue';
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import {SvgIcon} from '../svg.js';
|
import {SvgIcon} from '../svg.js';
|
||||||
import {GET} from '../modules/fetch.js';
|
import {GET} from '../modules/fetch.js';
|
||||||
|
@ -103,9 +103,6 @@ const sfc = {
|
||||||
const el = document.getElementById('dashboard-repo-list');
|
const el = document.getElementById('dashboard-repo-list');
|
||||||
this.changeReposFilter(this.reposFilter);
|
this.changeReposFilter(this.reposFilter);
|
||||||
$(el).find('.dropdown').dropdown();
|
$(el).find('.dropdown').dropdown();
|
||||||
nextTick(() => {
|
|
||||||
this.$refs.search.focus();
|
|
||||||
});
|
|
||||||
|
|
||||||
this.textArchivedFilterTitles = {
|
this.textArchivedFilterTitles = {
|
||||||
'archived': this.textShowOnlyArchived,
|
'archived': this.textShowOnlyArchived,
|
||||||
|
|
Loading…
Reference in New Issue