wait for next eventloop to focus on login error

This commit is contained in:
Johannes Zellner
2025-10-17 23:18:02 +02:00
parent ac5f4cca19
commit 7d538ee1b8
+1 -1
View File
@@ -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;