Skip to content

Commit b942d80

Browse files
authored
Fix console warning messages on the login and register pages (#24)
1 parent dbf7c0f commit b942d80

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

resources/js/pages/auth/Login.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const submit = () => {
4444
type="email"
4545
required
4646
autofocus
47-
tabindex="1"
47+
:tabindex="1"
4848
autocomplete="email"
4949
v-model="form.email"
5050
placeholder="[email protected]"
@@ -55,28 +55,28 @@ const submit = () => {
5555
<div class="grid gap-2">
5656
<div class="flex items-center justify-between">
5757
<Label for="password">Password</Label>
58-
<TextLink v-if="canResetPassword" :href="route('password.request')" class="text-sm" tabindex="5"> Forgot password? </TextLink>
58+
<TextLink v-if="canResetPassword" :href="route('password.request')" class="text-sm" :tabindex="5"> Forgot password? </TextLink>
5959
</div>
6060
<Input
6161
id="password"
6262
type="password"
6363
required
64-
tabindex="2"
64+
:tabindex="2"
6565
autocomplete="current-password"
6666
v-model="form.password"
6767
placeholder="Password"
6868
/>
6969
<InputError :message="form.errors.password" />
7070
</div>
7171

72-
<div class="flex items-center justify-between" tabindex="3">
72+
<div class="flex items-center justify-between" :tabindex="3">
7373
<Label for="remember" class="flex items-center space-x-3">
74-
<Checkbox id="remember" v-model:checked="form.remember" tabindex="4" />
74+
<Checkbox id="remember" v-model:checked="form.remember" :tabindex="4" />
7575
<span>Remember me</span>
7676
</Label>
7777
</div>
7878

79-
<Button type="submit" class="mt-4 w-full" tabindex="4" :disabled="form.processing">
79+
<Button type="submit" class="mt-4 w-full" :tabindex="4" :disabled="form.processing">
8080
<LoaderCircle v-if="form.processing" class="h-4 w-4 animate-spin" />
8181
Log in
8282
</Button>

resources/js/pages/auth/Register.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ const submit = () => {
3030
<div class="grid gap-6">
3131
<div class="grid gap-2">
3232
<Label for="name">Name</Label>
33-
<Input id="name" type="text" required autofocus tabindex="1" autocomplete="name" v-model="form.name" placeholder="Full name" />
33+
<Input id="name" type="text" required autofocus :tabindex="1" autocomplete="name" v-model="form.name" placeholder="Full name" />
3434
<InputError :message="form.errors.name" />
3535
</div>
3636

3737
<div class="grid gap-2">
3838
<Label for="email">Email address</Label>
39-
<Input id="email" type="email" required tabindex="2" autocomplete="email" v-model="form.email" placeholder="[email protected]" />
39+
<Input id="email" type="email" required :tabindex="2" autocomplete="email" v-model="form.email" placeholder="[email protected]" />
4040
<InputError :message="form.errors.email" />
4141
</div>
4242

@@ -46,7 +46,7 @@ const submit = () => {
4646
id="password"
4747
type="password"
4848
required
49-
tabindex="3"
49+
:tabindex="3"
5050
autocomplete="new-password"
5151
v-model="form.password"
5252
placeholder="Password"
@@ -60,7 +60,7 @@ const submit = () => {
6060
id="password_confirmation"
6161
type="password"
6262
required
63-
tabindex="4"
63+
:tabindex="4"
6464
autocomplete="new-password"
6565
v-model="form.password_confirmation"
6666
placeholder="Confirm password"
@@ -76,7 +76,7 @@ const submit = () => {
7676

7777
<div class="text-center text-sm text-muted-foreground">
7878
Already have an account?
79-
<TextLink :href="route('login')" class="underline underline-offset-4" tabindex="6">Log in</TextLink>
79+
<TextLink :href="route('login')" class="underline underline-offset-4" :tabindex="6">Log in</TextLink>
8080
</div>
8181
</form>
8282
</AuthBase>

0 commit comments

Comments
 (0)