From 6da7e66dc19696f991968bb36fba0ee3a3982078 Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Tue, 16 May 2023 11:42:12 +0200 Subject: fix(search): fix load more MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ Signed-off-by: nextcloud-command --- core/src/views/UnifiedSearch.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/src') diff --git a/core/src/views/UnifiedSearch.vue b/core/src/views/UnifiedSearch.vue index b5002d0dfc3..17ebaeb7c1a 100644 --- a/core/src/views/UnifiedSearch.vue +++ b/core/src/views/UnifiedSearch.vue @@ -135,7 +135,7 @@ ? t('core', 'Loading more results …') : t('core', 'Load more results')" :icon-class="loading[type] ? 'icon-loading-small' : ''" - @click.stop="loadMore(type)" + @click.prevent.stop="loadMore(type)" @focus="setFocusedIndex" /> @@ -351,13 +351,13 @@ export default { }, async created() { - subscribe('files:navigation:changed', this.resetForm) + subscribe('files:navigation:changed', this.onNavigationChange) this.types = await getTypes() this.logger.debug('Unified Search initialized with the following providers', this.types) }, beforeDestroy() { - unsubscribe('files:navigation:changed', this.resetForm) + unsubscribe('files:navigation:changed', this.onNavigationChange) }, mounted() { @@ -396,7 +396,7 @@ export default { emit('nextcloud:unified-search.close') }, - resetForm() { + onNavigationChange() { this.$el.querySelector('form[role="search"]').reset() }, -- cgit v1.2.3