summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-05-16 11:42:12 +0200
committernextcloud-command <nextcloud-command@users.noreply.github.com>2023-05-16 19:25:52 +0000
commit6da7e66dc19696f991968bb36fba0ee3a3982078 (patch)
tree5a49020dc2482628a174b3924d1db091ae01beb8 /core/src
parent5ea5e7b33949e5b938663b2baaf6840b71d3a6f4 (diff)
downloadnextcloud-server-6da7e66dc19696f991968bb36fba0ee3a3982078.tar.gz
nextcloud-server-6da7e66dc19696f991968bb36fba0ee3a3982078.zip
fix(search): fix load more
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/views/UnifiedSearch.vue8
1 files changed, 4 insertions, 4 deletions
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" />
</li>
</ul>
@@ -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()
},