Merge branch 'set-immediate' into 'develop'

Thread: replace call to setImmediate

See merge request soapbox-pub/soapbox!2670
environments/review-develop-3zknud/deployments/3796
Alex Gleason 2023-09-13 19:18:51 +00:00
commit ecf34537d8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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