wait for next eventloop to focus on login error
This commit is contained in:
@@ -49,7 +49,7 @@ async function onSubmit() {
|
||||
} else {
|
||||
password.value = '';
|
||||
passwordError.value = true;
|
||||
document.getElementById('inputPassword').focus();
|
||||
setTimeout(() => document.getElementById('inputPassword').focus(), 0);
|
||||
}
|
||||
} else if (res.status === 200 ) {
|
||||
if (res.body.redirectTo) return window.location.href = res.body.redirectTo;
|
||||
|
||||
Reference in New Issue
Block a user