Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(search): fix load more
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv authored and backportbot-nextcloud[bot] committed May 16, 2023
commit 075bb5f6c571ea4b0577ab35845dc78f94d36d20
8 changes: 4 additions & 4 deletions core/src/views/UnifiedSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,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>
Expand Down Expand Up @@ -335,13 +335,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() {
Expand Down Expand Up @@ -380,7 +380,7 @@ export default {
emit('nextcloud:unified-search.close')
},

resetForm() {
onNavigationChange() {
this.$el.querySelector('form[role="search"]').reset()
},

Expand Down