From d82cc18882b7c36b9cfb74c83a92bfa6ac5c9f77 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 9 Apr 2024 15:10:18 +0200 Subject: [PATCH] fix: fix opening acl create select Signed-off-by: Robin Appelman --- src/components/SharingSidebarView.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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