Skip to content

Commit

Permalink
Merge pull request #36998 from nextcloud/fix/share-select-viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Mar 2, 2023
2 parents e6aca96 + 0c69619 commit 2f64d16
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions apps/files_sharing/src/components/SharingInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
:user-select="true"
:options="options"
v-model="value"
@open="handleOpen"
@search="asyncFind"
@option:selected="addShare">
<template #no-options="{ search }">
Expand All @@ -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'
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions dist/files_sharing-files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files_sharing-files_sharing_tab.js.map

Large diffs are not rendered by default.

0 comments on commit 2f64d16

Please sign in to comment.