Skip to content

Commit

Permalink
fixing bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 8, 2020
1 parent d85870d commit 54a3db6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions stubs/inertia/resources/js/Pages/Profile/DeleteUserForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,21 @@
methods: {
confirmUserDeletion() {
this.confirmingUserDeletion = true
this.form.password = '';
this.confirmingUserDeletion = true;
setTimeout(() => {
this.$refs.password.focus()
}, 250)
},
deleteUser() {
this.form.post('/user', {
preserveScroll: true
}).then(response => {
if (! this.form.hasErrors()) {
this.confirmingUserDeletion = false
this.confirmingUserDeletion = false;
}
})
},
Expand Down

0 comments on commit 54a3db6

Please sign in to comment.