This is an automated email from the ASF dual-hosted git repository.
jscheffl pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new f2a48f87aa2 Add focus on Simple Auth Mgr login form (#51762)
f2a48f87aa2 is described below
commit f2a48f87aa2b574cd4112d69fa97899ada271b8e
Author: Jens Scheffler <[email protected]>
AuthorDate: Mon Jun 16 23:31:35 2025 +0200
Add focus on Simple Auth Mgr login form (#51762)
* Add focus on Simple Auth Mgr login form
* Review feedback
---
.../api_fastapi/auth/managers/simple/ui/src/login/LoginForm.tsx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/src/login/LoginForm.tsx
b/airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/src/login/LoginForm.tsx
index cd79cdd8173..69a6b4f14fc 100644
---
a/airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/src/login/LoginForm.tsx
+++
b/airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/src/login/LoginForm.tsx
@@ -53,7 +53,8 @@ export const LoginForm = ({ isPending, onLogin }:
LoginFormProps) => {
render={({ field, fieldState }) => (
<Field.Root invalid={Boolean(fieldState.error)} required>
<Field.Label>Username</Field.Label>
- <Input {...field} />
+ {/* eslint-disable-next-line jsx-a11y/no-autofocus */}
+ <Input autoFocus {...field} />
</Field.Root>
)}
rules={{ required: true }}