fix(files_sharing): bring global search in Sharing Input

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
This commit is contained in:
Grigorii K. Shartsev 2024-06-17 15:51:08 +02:00
parent 363221fb70
commit 91da36bae4

View file

@ -136,8 +136,20 @@ export default {
},
methods: {
onSelected(option) {
async onSelected(option) {
this.value = null // Reset selected option
// Not a real option, but a lookup = global search button
if (option.lookup) {
await this.getSuggestions(this.query, true)
// Wait until select is re-rendered with new options
await this.$nextTick()
// Open the select again
this.$refs.select.$children[0].open = true
return
}
this.openSharingDetails(option)
},