Focus on username field upon login
All checks were successful
buildbot/Hondaforum Site Build done.

This commit is contained in:
László Károlyi 2023-10-31 18:01:59 +01:00
parent 72f738a83b
commit b0d04aa317
Signed by: karolyi
GPG key ID: 2DCAF25E55735BFE

View file

@ -96,6 +96,9 @@ export default class LoginHandler {
await this.progressSubmitButton.setInstantReady()
this.isReady = true
}
const elUsername =
elForm.getElementsByClassName('form-control').namedItem('username')
if (elUsername instanceof HTMLInputElement) elUsername.focus()
}
private async getForm(): Promise<void> {