Skip to content

Commit ff21cdd

Browse files
committed
fixup! Use lookup by default
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent 4a2b657 commit ff21cdd

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

apps/files_sharing/src/components/SharingInput.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<template>
2424
<Multiselect ref="multiselect"
2525
class="sharing-input"
26+
:clear-on-select="false"
2627
:disabled="!canReshare"
2728
:hide-selected="true"
2829
:internal-search="false"
@@ -391,9 +392,18 @@ export default {
391392
*/
392393
async addShare(value) {
393394
if (value.lookup) {
394-
return this.getSuggestions(this.query, true)
395+
await this.getSuggestions(this.query, true)
396+
397+
// focus the input again
398+
this.$nextTick(() => {
399+
this.$refs.multiselect.$el.querySelector('.multiselect__input').focus()
400+
})
401+
return true
395402
}
396403
404+
// TODO: reset the search string when done
405+
// https://github.com/shentao/vue-multiselect/issues/633
406+
397407
// handle externalResults from OCA.Sharing.ShareSearch
398408
if (value.handler) {
399409
const share = await value.handler(this)

0 commit comments

Comments
 (0)