Skip to content

Commit 54a3db6

Browse files
committedSep 8, 2020
fixing bugs
1 parent d85870d commit 54a3db6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
 

Diff for: ‎stubs/inertia/resources/js/Pages/Profile/DeleteUserForm.vue

+8-2
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,21 @@
8888
8989
methods: {
9090
confirmUserDeletion() {
91-
this.confirmingUserDeletion = true
91+
this.form.password = '';
92+
93+
this.confirmingUserDeletion = true;
94+
95+
setTimeout(() => {
96+
this.$refs.password.focus()
97+
}, 250)
9298
},
9399
94100
deleteUser() {
95101
this.form.post('/user', {
96102
preserveScroll: true
97103
}).then(response => {
98104
if (! this.form.hasErrors()) {
99-
this.confirmingUserDeletion = false
105+
this.confirmingUserDeletion = false;
100106
}
101107
})
102108
},

0 commit comments

Comments
 (0)
Please sign in to comment.