mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 01:56:27 +08:00
fix: autofocus (#1614)
Co-authored-by: VictorNanka <victornanka@gmail.com>
This commit is contained in:
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user