Skip to content

Commit

Permalink
Merge pull request #4846 from nextcloud-libraries/fix/4539/nc-actions…
Browse files Browse the repository at this point in the history
…--search-item-to-focus

fix(NcActions): only search for items to focus on in the current menu
  • Loading branch information
susnux authored Nov 17, 2023
2 parents 2a70f3a + 9d1930d commit e2b6224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NcActions/NcActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ export default {
}
const menuItem = event.target.closest('li')
if (menuItem) {
if (menuItem && this.$refs.menu.contains(menuItem)) {
const focusableItem = menuItem.querySelector(focusableSelector)
if (focusableItem) {
const focusList = this.$refs.menu.querySelectorAll(focusableSelector)
Expand Down

0 comments on commit e2b6224

Please sign in to comment.