fix: autofocus (#1614)

Co-authored-by: VictorNanka <victornanka@gmail.com>
This commit is contained in:
Himself65
2023-03-19 19:40:29 -05:00
committed by GitHub
parent c00d39f929
commit 1bbb0aee4b
3 changed files with 33 additions and 14 deletions
@@ -68,6 +68,11 @@ export const WorkspaceDeleteModal = ({
)}
<StyledInputContent>
<Input
ref={ref => {
if (ref) {
setTimeout(() => ref.focus(), 0);
}
}}
onChange={setDeleteStr}
data-testid="delete-workspace-input"
placeholder={t('Placeholder of delete workspace')}