diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2023-03-02 09:31:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-02 09:31:39 +0100 |
commit | 2f64d16afdaeccee608c861a3729c817d7a8e7bb (patch) | |
tree | e47734f1cba63bd08881b5e41e05f51b7736492c /apps | |
parent | e6aca968b2aef31466eafb13638a0124166431b1 (diff) | |
parent | 0c69619d914a5952785336b45e0a005c7ba3177d (diff) | |
download | nextcloud-server-2f64d16afdaeccee608c861a3729c817d7a8e7bb.tar.gz nextcloud-server-2f64d16afdaeccee608c861a3729c817d7a8e7bb.zip |
Merge pull request #36998 from nextcloud/fix/share-select-viewer
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/src/components/SharingInput.vue | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue index 46c495d8279..8dadb4689ff 100644 --- a/apps/files_sharing/src/components/SharingInput.vue +++ b/apps/files_sharing/src/components/SharingInput.vue @@ -34,6 +34,7 @@ :user-select="true" :options="options" v-model="value" + @open="handleOpen" @search="asyncFind" @option:selected="addShare"> <template #no-options="{ search }"> @@ -46,6 +47,7 @@ <script> import { generateOcsUrl } from '@nextcloud/router' import { getCurrentUser } from '@nextcloud/auth' +import { emit } from '@nextcloud/event-bus' import axios from '@nextcloud/axios' import debounce from 'debounce' import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js' @@ -153,6 +155,11 @@ export default { }, methods: { + handleOpen() { + // Fix dropdown not opening when viewer is open, see https://github.com/nextcloud/viewer/pull/1319 + emit('viewer:trapElements:changed', this.$refs.select.$el) + }, + async asyncFind(query) { // save current query to check if we display // recommendations or search results |