Merge pull request #40273 from nextcloud/fix/39434/sharing-select-breaking-focus-trap-with-viewer

This commit is contained in:
Pytal 2023-09-05 16:34:01 -07:00 committed by GitHub
commit 9df4da86ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 14 deletions

View file

@ -34,7 +34,6 @@
:clear-search-on-blur="() => false"
:user-select="true"
:options="options"
@open="handleOpen"
@search="asyncFind"
@option:selected="openSharingDetails">
<template #no-options="{ search }">
@ -47,7 +46,6 @@
<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'
@ -156,11 +154,6 @@ 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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/894-894.js.map vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long