Skip to content

Commit

Permalink
Merge pull request #2961 from nextcloud/fix/2958/focus-last-action
Browse files Browse the repository at this point in the history
Fix focusing last action with page-down
  • Loading branch information
marcoambrosini authored Aug 8, 2022
2 parents 8165f79 + 7bf2bd8 commit fd7a07e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Actions/Actions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ export default {
```
<template>
<Actions :primary="true">
<ActionButton icon="icon-edit">
<ActionButton>
<template #icon>
<Pencil :size="20" />
</template>
Edit
</ActionButton>
<ActionButton icon="icon-delete">
<ActionButton>
<template #icon>
<Delete :size="20" />
</template>
Expand Down Expand Up @@ -846,7 +846,7 @@ export default {
focusLastAction(event) {
if (this.opened) {
this.preventIfEvent(event)
this.focusIndex = this.$el.querySelectorAll(focusableSelector).length - 1
this.focusIndex = this.$refs.menu.querySelectorAll(focusableSelector).length - 1
this.focusAction()
}
},
Expand Down

0 comments on commit fd7a07e

Please sign in to comment.