From 7f655009ac4214ddbe1c431b0a5ca22799fa517c Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Thu, 28 May 2026 00:07:34 +0200 Subject: [PATCH] fix(projects): open autocomplete on click/type, not focus The dialog autofocuses the project input on open; opening the dropdown on focus made it spring open with no user interaction. Open on click or typing instead, so the field is type-ready on open without showing the list. --- app/components/ProjectAutocomplete.vue | 2 +- tests/defect-form.nuxt.spec.ts | 2 +- tests/project-autocomplete.nuxt.spec.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/components/ProjectAutocomplete.vue b/app/components/ProjectAutocomplete.vue index f71fcbf..32fc657 100644 --- a/app/components/ProjectAutocomplete.vue +++ b/app/components/ProjectAutocomplete.vue @@ -66,7 +66,7 @@ async function create() { data-test="project-input" placeholder="Project…" autocomplete="off" - @focus="open = true" + @click="open = true" @input="open = true" >