Merge branch 'set-immediate' into 'develop'

Thread: replace call to setImmediate

See merge request soapbox-pub/soapbox!2670
This commit is contained in:
Alex Gleason 2023-09-13 19:18:51 +00:00
commit ecf34537d8

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) => {