mirror of https://github.com/buster-so/buster.git
fix dashboard and metric rename
This commit is contained in:
parent
a870c8383d
commit
733309b5ec
|
@ -220,7 +220,7 @@ export const useRenameDashboardSelectMenu = ({
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
input.focus();
|
input.focus();
|
||||||
input.select();
|
input.select();
|
||||||
}, 50);
|
}, 200);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue