Skip to content

Commit

Permalink
♿ Add autoFocus and autoComplete to login form
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed May 13, 2024
1 parent 078091b commit 88e8e24
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions frontend/src/pages/login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,19 @@ export type LoginProps = React.ComponentProps<"main"> & {
*/
export function LoginPage({ children, ...props }: LoginProps) {
const fields = [
{ label: "Gebruikersnaam", name: "username", type: "text" },
{ label: "Wachtwoord", name: "password", type: "password" },
{
autoFocus: true,
autoComplete: "username",
label: "Gebruikersnaam",
name: "username",
type: "text",
},
{
autoComplete: "current-password",
label: "Wachtwoord",
name: "password",
type: "password",
},
];

const actionData = useActionData() || {};
Expand Down

0 comments on commit 88e8e24

Please sign in to comment.