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); } }, }),