diff options
-rw-r--r-- | apps/settings/src/components/Users/NewUserDialog.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/settings/src/components/Users/NewUserDialog.vue b/apps/settings/src/components/Users/NewUserDialog.vue index 1205706153f..d869440befc 100644 --- a/apps/settings/src/components/Users/NewUserDialog.vue +++ b/apps/settings/src/components/Users/NewUserDialog.vue @@ -280,7 +280,7 @@ export default { }) this.$emit('reset') - this.$refs.username?.$refs?.inputField?.$refs?.input?.focus?.() + this.$refs.username?.focus?.() this.$emit('closing') } catch (error) { this.loading.all = false @@ -288,10 +288,10 @@ export default { const statuscode = error.response.data.ocs.meta.statuscode if (statuscode === 102) { // wrong username - this.$refs.username?.$refs?.inputField?.$refs?.input?.focus?.() + this.$refs.username?.focus?.() } else if (statuscode === 107) { // wrong password - this.$refs.password?.$refs?.inputField?.$refs?.input?.focus?.() + this.$refs.password?.focus?.() } } } |