Skip to content

Commit 66b0cc4

Browse files
committed
ログイン・新規作成画面にautocomplete属性を追加
1 parent b876699 commit 66b0cc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/components/AuthForm.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
disabled={$submitting || isSubmitting}
140140
required
141141
class="ps-10"
142+
autocomplete="username"
142143
>
143144
{#snippet left()}
144145
<CirCleUserRound class="w-5 h-5" tabindex={UNFOCUSABLE} />
@@ -167,6 +168,7 @@
167168
disabled={$submitting || isSubmitting}
168169
required
169170
class="ps-10"
171+
autocomplete={isLoginForm(title) ? 'current-password' : 'new-password'}
170172
>
171173
<!-- Show / hide password -->
172174
{#snippet left()}

0 commit comments

Comments
 (0)