Thread: replace call to setImmediate

This commit is contained in:
Alex Gleason 2023-09-13 14:17:30 -05:00
parent 2fb13a0145
commit 19bf51165c
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ const Thread = (props: IThread) => {
offset: -146,
});
setImmediate(() => statusRef.current?.querySelector<HTMLDivElement>('.detailed-actualStatus')?.focus());
setTimeout(() => statusRef.current?.querySelector<HTMLDivElement>('.detailed-actualStatus')?.focus(), 0);
}, [status.id, ancestorsIds.size]);
const handleOpenCompareHistoryModal = (status: Status) => {