diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 2365a24..0ac1d20 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -22,4 +22,4 @@ jobs: run: npm ci - name: Run ESLint - run: npm run lint \ No newline at end of file + run: npx eslint . \ No newline at end of file diff --git a/src/components/DeleteUserModal.vue b/src/components/DeleteUserModal.vue index 9d19b56..d930454 100644 --- a/src/components/DeleteUserModal.vue +++ b/src/components/DeleteUserModal.vue @@ -34,14 +34,16 @@ const deleteAccount = () => { setFlashMessage('success', 'Your account has been deleted.'); }); }, - onError: () => passwordInput.value.$el.focus(), + onError: () => { + console.error('error'); + const passwordInputElement = passwordInput.value.$el.querySelector('input'); + if (passwordInputElement) { + passwordInputElement.focus(); + } + }, onFinish: () => resetFormFields(), }); }; - -function focusPasswordInput() { - passwordInput.value.$el.focus(); -}