Merge pull request #34050 from nextcloud/bug/noid/login-form-focus

Set focus to input field for login form
This commit is contained in:
Vincent Petry 2022-09-16 11:49:45 +02:00 committed by GitHub
commit a716308e7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View file

@ -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()
}
},

4
dist/core-common.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/core-login.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long