Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-10-20 14:58:01 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-22 08:41:33 +0300
commit5e519fe17a2d4940993f4d866dfdd68269265a12 (patch)
tree203caa31bf22a2574784926ab11b454eefc917d0 /apps/files_sharing/src
parentc47e79fc67ce3ac4d3b3388e97bc9c697dc5d7e6 (diff)
Clear the input after adding a new share
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/components/SharingInput.vue9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue
index 1f78a605c09..686e27379cc 100644
--- a/apps/files_sharing/src/components/SharingInput.vue
+++ b/apps/files_sharing/src/components/SharingInput.vue
@@ -449,9 +449,6 @@ export default {
return true
}
- // TODO: reset the search string when done
- // https://github.com/shentao/vue-multiselect/issues/633
-
// handle externalResults from OCA.Sharing.ShareSearch
if (value.handler) {
const share = await value.handler(this)
@@ -494,6 +491,12 @@ export default {
this.$emit('add:share', share)
}
+ // reset the search string when done
+ // FIXME: https://github.com/shentao/vue-multiselect/issues/633
+ if (this.$refs.multiselect?.$refs?.VueMultiselect?.search) {
+ this.$refs.multiselect.$refs.VueMultiselect.search = ''
+ }
+
await this.getRecommendations()
} catch (error) {
// focus back if any error