Skip to content

Commit 073e5e3

Browse files
Merge pull request #179 from laravel/fix-password-input-focus
Fix password input focus error
2 parents 8bb3219 + 835cd4e commit 073e5e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/js/components/DeleteUser.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
import { Input } from '@/components/ui/input';
2020
import { Label } from '@/components/ui/label';
2121
22-
const passwordInput = ref<HTMLInputElement | null>(null);
22+
const passwordInput = ref<InstanceType<typeof Input> | null>(null);
2323
</script>
2424

2525
<template>
@@ -39,7 +39,7 @@ const passwordInput = ref<HTMLInputElement | null>(null);
3939
method="delete"
4040
:action="route('profile.destroy')"
4141
reset-on-success
42-
@error="() => passwordInput?.focus()"
42+
@error="() => passwordInput?.$el?.focus()"
4343
:options="{
4444
preserveScroll: true,
4545
}"

0 commit comments

Comments
 (0)