diff --git a/src/components/SharingSidebarView.vue b/src/components/SharingSidebarView.vue index 2f0a00c87..f91a05db2 100644 --- a/src/components/SharingSidebarView.vue +++ b/src/components/SharingSidebarView.vue @@ -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