Skip to content

Commit

Permalink
Add autoComplete to fields
Browse files Browse the repository at this point in the history
  • Loading branch information
zntb committed Mar 27, 2024
1 parent bb8b036 commit 035374b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/(protected)/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const SettingsPage = () => {
placeholder="John Doe"
{...field}
disabled={isPending}
autoComplete="name"
/>
</FormControl>
<FormMessage />
Expand All @@ -113,6 +114,7 @@ const SettingsPage = () => {
placeholder="john.doe@me.com"
{...field}
disabled={isPending}
autoComplete="null"
/>
</FormControl>
<FormMessage />
Expand All @@ -132,6 +134,7 @@ const SettingsPage = () => {
{...field}
value={field.value === undefined ? '' : field.value}
disabled={isPending}
autoComplete="current-password"
/>
</FormControl>
<FormMessage />
Expand All @@ -151,6 +154,7 @@ const SettingsPage = () => {
{...field}
value={field.value === undefined ? '' : field.value}
disabled={isPending}
autoComplete="new-password"
/>
</FormControl>
<FormMessage />
Expand Down
1 change: 1 addition & 0 deletions components/auth/login-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export const LoginForm = () => {
placeholder="******"
type="password"
disabled={isPending}
autoComplete=""
/>
</FormControl>
<Button
Expand Down
4 changes: 4 additions & 0 deletions components/auth/register-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ export const RegisterForm = () => {
{...field}
placeholder="John Doe"
disabled={isPending}
type="text"
autoComplete=""
/>
</FormControl>
<FormMessage />
Expand All @@ -90,6 +92,7 @@ export const RegisterForm = () => {
disabled={isPending}
placeholder="john.doe@example.com"
type="email"
autoComplete=""
/>
</FormControl>
<FormMessage />
Expand All @@ -108,6 +111,7 @@ export const RegisterForm = () => {
placeholder="•••••••••"
type="password"
disabled={isPending}
autoComplete=""
/>
</FormControl>
<FormMessage />
Expand Down

0 comments on commit 035374b

Please sign in to comment.