From 1f752bf11fcab9c88b2613ee43cbc01cf69cee05 Mon Sep 17 00:00:00 2001 From: Dante <35383529+srdante@users.noreply.github.com> Date: Tue, 12 Jan 2021 17:06:50 -0300 Subject: [PATCH 1/2] Remove password focus Remove password focus since there is no password field to focus. --- .../resources/js/Pages/Profile/ConnectedAccountsForm.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/stubs/inertia/resources/js/Pages/Profile/ConnectedAccountsForm.vue b/stubs/inertia/resources/js/Pages/Profile/ConnectedAccountsForm.vue index df7e43e8..dcc91ead 100644 --- a/stubs/inertia/resources/js/Pages/Profile/ConnectedAccountsForm.vue +++ b/stubs/inertia/resources/js/Pages/Profile/ConnectedAccountsForm.vue @@ -110,10 +110,6 @@ this.accountId = id; this.confirmingRemove = true; - - setTimeout(() => { - this.$refs.password.focus(); - }, 250); }, hasAccountForProvider(provider) { From 10e560b9f99c9513a2e360f4870e76b75cb20ed5 Mon Sep 17 00:00:00 2001 From: Dante <35383529+srdante@users.noreply.github.com> Date: Tue, 12 Jan 2021 17:29:55 -0300 Subject: [PATCH 2/2] Update ConnectedAccountsForm.vue --- .../resources/js/Pages/Profile/ConnectedAccountsForm.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/stubs/inertia/resources/js/Pages/Profile/ConnectedAccountsForm.vue b/stubs/inertia/resources/js/Pages/Profile/ConnectedAccountsForm.vue index dcc91ead..8927f246 100644 --- a/stubs/inertia/resources/js/Pages/Profile/ConnectedAccountsForm.vue +++ b/stubs/inertia/resources/js/Pages/Profile/ConnectedAccountsForm.vue @@ -127,11 +127,7 @@ removeConnectedAccount(id) { this.form.post(route('connected-accounts.destroy', {id}), { preserveScroll: true, - onSuccess: () => { - if (! this.form.hasErrors()) { - this.confirmingRemove = false; - } - }, + onSuccess: () => (this.confirmingRemove = false), }); }, }