From 19bf51165ca82d85515f288c939cca337317eca3 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 13 Sep 2023 14:17:30 -0500 Subject: [PATCH] Thread: replace call to setImmediate --- app/soapbox/features/status/components/thread.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/features/status/components/thread.tsx b/app/soapbox/features/status/components/thread.tsx index 9a9e5fe8c..1e0e79100 100644 --- a/app/soapbox/features/status/components/thread.tsx +++ b/app/soapbox/features/status/components/thread.tsx @@ -338,7 +338,7 @@ const Thread = (props: IThread) => { offset: -146, }); - setImmediate(() => statusRef.current?.querySelector('.detailed-actualStatus')?.focus()); + setTimeout(() => statusRef.current?.querySelector('.detailed-actualStatus')?.focus(), 0); }, [status.id, ancestorsIds.size]); const handleOpenCompareHistoryModal = (status: Status) => {