diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2022-09-13 14:53:10 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2022-09-16 10:51:24 +0200 |
commit | 383701914c2120ca2220d5c9c405c2c678bb89d6 (patch) | |
tree | 3d1ef395d0bc153f06ab133810d191cf50adab7d /core/src | |
parent | 6bd6f92850a971bc61e5109f192dcfa9ba806255 (diff) | |
download | nextcloud-server-383701914c2120ca2220d5c9c405c2c678bb89d6.tar.gz nextcloud-server-383701914c2120ca2220d5c9c405c2c678bb89d6.zip |
Set focus to input field
Fix:
- TypeError: this.$refs.user.focus is not a function
- TypeError: this.$refs.password.focus is not a function
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/components/login/LoginForm.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/components/login/LoginForm.vue b/core/src/components/login/LoginForm.vue index 51966868b5e..2ab4035ae65 100644 --- a/core/src/components/login/LoginForm.vue +++ b/core/src/components/login/LoginForm.vue @@ -203,10 +203,10 @@ export default { mounted() { if (this.username === '') { - this.$refs.user.focus() + this.$refs.user.$refs.inputField.$refs.input.focus() } else { this.user = this.username - this.$refs.password.focus() + this.$refs.password.$refs.inputField.$refs.input.focus() } }, |