Skip to content

Commit

Permalink
Merge pull request #2916 from nextcloud/fix/open-acl-popup
Browse files Browse the repository at this point in the history
fix: fix opening acl create select
  • Loading branch information
Pytal authored Apr 12, 2024
2 parents 1bf97d9 + d82cc18 commit 174ec06
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/SharingSidebarView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,11 @@ export default {
},
toggleAclCreate() {
this.showAclCreate = !this.showAclCreate
Vue.nextTick(() => {
this.$refs.select.$el.focus()
})
if (this.showAclCreate) {
Vue.nextTick(() => {
this.$refs.select.$el.querySelector('input').focus()
})
}
},
createAcl(option) {
this.value = null
Expand Down

0 comments on commit 174ec06

Please sign in to comment.