From aaa375654bbf6a694c77de51e3240bf9121a92be Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sun, 7 Jun 2026 20:37:02 -0400 Subject: [PATCH] fix(fandom): match change-fandom modal focus + Enter to FandomPicker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 'Fandom for ' dialog (FandomSetDialog) used plain autofocus and had no Enter handling, so Enter re-opened the dropdown instead of submitting — the same bug FandomPicker already fixed. Mirror that flow: parent v-dialogs focus the field via @after-enter→focusSearch (reliable past the focus-trap); capture-phase Enter Saves the changed selection instead of re-opening the menu; Tab jumps to the new-fandom field; creating a fandom returns focus to the dropdown so a single Enter saves it. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../src/components/modal/FandomSetDialog.vue | 54 ++++++++++++++++++- frontend/src/components/modal/TagPanel.vue | 7 ++- frontend/src/views/TagsView.vue | 7 ++- 3 files changed, 64 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/modal/FandomSetDialog.vue b/frontend/src/components/modal/FandomSetDialog.vue index d60a362..730bf2c 100644 --- a/frontend/src/components/modal/FandomSetDialog.vue +++ b/frontend/src/components/modal/FandomSetDialog.vue @@ -3,20 +3,29 @@ Fandom for “{{ tag.name }}”