From 7c4e44d6a1dc8322b8a0df389e8426f0aeb3fa19 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Tue, 9 Jun 2026 13:40:24 -0700 Subject: [PATCH] FN-6122: prevent quick-entry buttons from refocusing textarea Keep quick-entry textarea focus stable while action buttons are clicked. - prevent mousedown on refine, deps, attach, models, node, agent, and priority controls from stealing textarea focus - add quick-entry focus regression coverage for individual controls and the full action row - add a patch changeset for the quick-entry focus behavior fix Files changed: .changeset/fn-6122-quick-entry-focus.md | 5 ++ .../dashboard/app/components/QuickEntryBox.tsx | 7 ++ .../components/__tests__/QuickEntryBox.test.tsx | 87 ++++++++++++++++++++++ 3 files changed, 99 insertions(+) Fusion-Task-Id: FN-6122 Fusion-Task-Lineage: 2a8f876d-f387-4b04-bd1e-0bf79938707e --- .changeset/fn-6122-quick-entry-focus.md | 5 ++ .../app/components/QuickEntryBox.tsx | 7 ++ .../__tests__/QuickEntryBox.test.tsx | 87 +++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 .changeset/fn-6122-quick-entry-focus.md diff --git a/.changeset/fn-6122-quick-entry-focus.md b/.changeset/fn-6122-quick-entry-focus.md new file mode 100644 index 0000000000..e00b1c672a --- /dev/null +++ b/.changeset/fn-6122-quick-entry-focus.md @@ -0,0 +1,5 @@ +--- +"@runfusion/fusion": patch +--- + +Prevent QuickEntry quick-action buttons from stealing or restoring textarea focus on mouse down, preserving existing click behavior while avoiding unwanted mobile keyboard refocus. diff --git a/packages/dashboard/app/components/QuickEntryBox.tsx b/packages/dashboard/app/components/QuickEntryBox.tsx index 1c5799b24d..510250667a 100644 --- a/packages/dashboard/app/components/QuickEntryBox.tsx +++ b/packages/dashboard/app/components/QuickEntryBox.tsx @@ -1507,6 +1507,7 @@ export function QuickEntryBox({ onCreate, addToast, tasks = [], availableModels,