Skip to content

Commit

Permalink
Remove autocomplete and autocapitalisation on server url and username…
Browse files Browse the repository at this point in the history
… fields (#731)
  • Loading branch information
scme0 authored Dec 19, 2024
1 parent 8dcd4df commit cf72873
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build:mobile:dev": "yarn workspace mobile build:dev",
"update": "yarn workspace mobile update",
"lint": "biome lint .",
"lint:fix": "biome lint . --apply",
"lint:fix": "biome lint . --write",
"format": "biome format .",
"format:fix": "biome format . --write"
},
Expand Down
7 changes: 6 additions & 1 deletion front/packages/ui/src/login/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ export const LoginPage: QueryPage<{ apiUrl?: string; error?: string }> = ({
<H1>{t("login.login")}</H1>
<OidcLogin apiUrl={apiUrl} />
<P {...css({ paddingLeft: ts(1) })}>{t("login.username")}</P>
<Input autoComplete="username" variant="big" onChangeText={(value) => setUsername(value)} />
<Input
autoComplete="username"
variant="big"
onChangeText={(value) => setUsername(value)}
autoCapitalize="none"
/>
<P {...css({ paddingLeft: ts(1) })}>{t("login.password")}</P>
<PasswordInput
autoComplete="password"
Expand Down
2 changes: 1 addition & 1 deletion front/packages/ui/src/login/server-url.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const ServerUrlPage: QueryPage = () => {
>
<H1>{t("login.server")}</H1>
<View {...css({ justifyContent: "center" })}>
<Input variant="big" onChangeText={setApiUrl} />
<Input variant="big" onChangeText={setApiUrl} autoCorrect={false} autoCapitalize="none" />
{!data && (
<P {...css({ color: (theme: Theme) => theme.colors.red, alignSelf: "center" })}>
{error?.errors[0] ?? t("misc.loading")}
Expand Down

0 comments on commit cf72873

Please sign in to comment.