diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2023-05-16 11:42:12 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-05-16 11:45:50 +0200 |
commit | 7e51305ae4a28a8dcd406aaada4b85a2d6d535c1 (patch) | |
tree | 6d8a454fca0f925a5032fb8126b48ada10912713 /core/src/views | |
parent | 5e02def3f49a56701a3facfb9dc82ef0fff703d5 (diff) | |
download | nextcloud-server-7e51305ae4a28a8dcd406aaada4b85a2d6d535c1.tar.gz nextcloud-server-7e51305ae4a28a8dcd406aaada4b85a2d6d535c1.zip |
fix(search): fix load more
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src/views')
-rw-r--r-- | core/src/views/UnifiedSearch.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/views/UnifiedSearch.vue b/core/src/views/UnifiedSearch.vue index 19ea68654ad..3e1f913ab8a 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() }, |