From 136acbc59c624813764d88907eb4c6d3630cc8b0 Mon Sep 17 00:00:00 2001 From: bboysoul Date: Wed, 23 Sep 2026 09:01:42 +0800 Subject: [PATCH] fix: fall back when initial-focus target is not focusable yet Task detail opens with taskDetailBusy=true, so the close button is disabled at the moment focusIntoPanel runs; focusing it silently failed and left focus on body (Esc then never reached the sheet). Skip targets that are disabled/hidden/inert without relying on layout metrics (keeps jsdom tests valid), falling back to first focusable or the panel itself. --- frontend/src/App.vue | 2 +- frontend/src/components/AppSheet.vue | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index e6e06a4..a3caf80 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1879,7 +1879,7 @@ onUnmounted(() => {