We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8bb3219 + 835cd4e commit 073e5e3Copy full SHA for 073e5e3
resources/js/components/DeleteUser.vue
@@ -19,7 +19,7 @@ import {
19
import { Input } from '@/components/ui/input';
20
import { Label } from '@/components/ui/label';
21
22
-const passwordInput = ref<HTMLInputElement | null>(null);
+const passwordInput = ref<InstanceType<typeof Input> | null>(null);
23
</script>
24
25
<template>
@@ -39,7 +39,7 @@ const passwordInput = ref<HTMLInputElement | null>(null);
39
method="delete"
40
:action="route('profile.destroy')"
41
reset-on-success
42
- @error="() => passwordInput?.focus()"
+ @error="() => passwordInput?.$el?.focus()"
43
:options="{
44
preserveScroll: true,
45
}"
0 commit comments