fix dashboard and metric rename

This commit is contained in:
Nate Kelley 2025-09-26 09:16:22 -06:00
parent a870c8383d
commit 733309b5ec
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 5 additions and 3 deletions

View File

@ -220,7 +220,7 @@ export const useRenameDashboardSelectMenu = ({
setTimeout(() => { setTimeout(() => {
input.focus(); input.focus();
input.select(); input.select();
}, 50); }, 200);
} }
}, },
}), }),

View File

@ -155,8 +155,10 @@ export const useRenameMetricOnPage = ({
() => document.getElementById(METRIC_CHART_TITLE_INPUT_ID) as HTMLInputElement () => document.getElementById(METRIC_CHART_TITLE_INPUT_ID) as HTMLInputElement
); );
if (input) { if (input) {
input.focus(); setTimeout(() => {
input.select(); input.focus();
input.select();
}, 250);
} }
}, },
}), }),