From 4c299ca0257ed499ff357ba4089c7e98d0a5e647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20M=C3=A4ki?= Date: Fri, 2 Feb 2024 11:01:00 +0200 Subject: [PATCH] Focus on text inputs when profile management modals are opened nextTick method is used to ensure that the modals which us v-if are mounted before attempting to focus on them. I would've liked to also support using enter key to trigger the action, but due to spaghetty modal reusage, that would require more refactoring effort than I'm willing to invest at this point. --- src/pages/Profiles.vue | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/src/pages/Profiles.vue b/src/pages/Profiles.vue index 364256b41..961c4c3f5 100644 --- a/src/pages/Profiles.vue +++ b/src/pages/Profiles.vue @@ -12,7 +12,7 @@

This profile will store its own mods independently from other profiles.


- +

Profile name required @@ -86,7 +86,7 @@ + @click="showImportModal = false; openProfileCodeModal();">From code
@@ -101,7 +101,7 @@

Enter the profile code

- +

You haven't entered a code @@ -243,6 +243,7 @@