From 733309b5ec823c8d769ebb95de21bb8107415f4e Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Fri, 26 Sep 2025 09:16:22 -0600 Subject: [PATCH] fix dashboard and metric rename --- .../src/components/features/dashboard/threeDotMenuHooks.tsx | 2 +- .../src/components/features/metrics/threeDotMenuHooks.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/web/src/components/features/dashboard/threeDotMenuHooks.tsx b/apps/web/src/components/features/dashboard/threeDotMenuHooks.tsx index b65b2466e..181480452 100644 --- a/apps/web/src/components/features/dashboard/threeDotMenuHooks.tsx +++ b/apps/web/src/components/features/dashboard/threeDotMenuHooks.tsx @@ -220,7 +220,7 @@ export const useRenameDashboardSelectMenu = ({ setTimeout(() => { input.focus(); input.select(); - }, 50); + }, 200); } }, }), diff --git a/apps/web/src/components/features/metrics/threeDotMenuHooks.tsx b/apps/web/src/components/features/metrics/threeDotMenuHooks.tsx index 5d0f663f3..aaa70ec0c 100644 --- a/apps/web/src/components/features/metrics/threeDotMenuHooks.tsx +++ b/apps/web/src/components/features/metrics/threeDotMenuHooks.tsx @@ -155,8 +155,10 @@ export const useRenameMetricOnPage = ({ () => document.getElementById(METRIC_CHART_TITLE_INPUT_ID) as HTMLInputElement ); if (input) { - input.focus(); - input.select(); + setTimeout(() => { + input.focus(); + input.select(); + }, 250); } }, }),