mirror of
https://github.com/nextcloud/server.git
synced 2026-03-19 09:05:01 -04:00
Merge pull request #36998 from nextcloud/fix/share-select-viewer
This commit is contained in:
commit
2f64d16afd
3 changed files with 10 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
4
dist/files_sharing-files_sharing_tab.js
vendored
4
dist/files_sharing-files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-files_sharing_tab.js.map
vendored
2
dist/files_sharing-files_sharing_tab.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue